We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cfd137 commit 3a08c9eCopy full SHA for 3a08c9e
README.md
@@ -86,6 +86,17 @@ Firestore.firestore().collection("data").document("one").getDocument { (document
86
}
87
```
88
89
+### How to use `GeoPoint` and `DocumentRefence` in Firestore
90
+
91
+In order to use these 2 types with `Firestore`, you need to add the following code somewhere in your app:
92
93
+```swift
94
+extension DocumentReference: DocumentReferenceType {}
95
+extension GeoPoint: GeoPointType {}
96
+```
97
98
+and now they become `Codable` and can be used properly with `FirestoreEncoder` and `FirestoreDecoder`.
99
100
## Integration
101
102
### CocoaPods (iOS 9+)
0 commit comments