You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| [withConverter(converter)](./firestore_.collectionreference.md#collectionreferencewithconverter) | | Applies a custom data converter to this <code>CollectionReference</code>, allowing you to use your own custom model objects with Firestore. When you call [addDoc()](./firestore_.md#adddoc) with the returned <code>CollectionReference</code> instance, the provided converter will convert between Firestore data and your custom type <code>U</code>. |
35
+
| [withConverter(converter)](./firestore_.collectionreference.md#collectionreferencewithconverter) | | Applies a custom data converter to this <code>CollectionReference</code>, allowing you to use your own custom model objects with Firestore. When you call [addDoc()](./firestore_.md#adddoc) with the returned <code>CollectionReference</code> instance, the provided converter will convert between Firestore data of type <code>NewDbModelType</code> and your custom type <code>NewAppModelType</code>. |
36
36
| [withConverter(converter)](./firestore_.collectionreference.md#collectionreferencewithconverter) | | Removes the current converter. |
37
37
38
38
## CollectionReference.id
@@ -77,7 +77,7 @@ readonly type = "collection";
77
77
78
78
## CollectionReference.withConverter()
79
79
80
-
Applies a custom data converter to this `CollectionReference`<!-- -->, allowing you to use your own custom model objects with Firestore. When you call [addDoc()](./firestore_.md#adddoc) with the returned `CollectionReference` instance, the provided converter will convert between Firestore data and your custom type `U`<!-- -->.
80
+
Applies a custom data converter to this `CollectionReference`<!-- -->, allowing you to use your own custom model objects with Firestore. When you call [addDoc()](./firestore_.md#adddoc) with the returned `CollectionReference` instance, the provided converter will convert between Firestore data of type `NewDbModelType`and your custom type `NewAppModelType`<!-- -->.
81
81
82
82
<b>Signature:</b>
83
83
@@ -95,7 +95,7 @@ withConverter<NewAppModelType, NewDbModelType extends DocumentData>(converter: F
Generally, thedatareturnedfrom`snapshot.data()`canbecastto`DbModelType`<!-- -->; however, thisisnotguaranteedaswritestothedatabasemayhaveoccurredwithoutatypeconverterenforcingthisspecificlayout.
|[DocumentChange](./firestore_.documentchange.md#documentchange_interface)| A <code>DocumentChange</code> represents a change to the documents matching a query. It contains the document affected and the type of change that occurred. |
154
154
|[DocumentData](./firestore_.documentdata.md#documentdata_interface)| Document data (for use with [setDoc()](./firestore_lite.md#setdoc)<!---->) consists of fields mapped to values. |
155
155
|[ExperimentalLongPollingOptions](./firestore_.experimentallongpollingoptions.md#experimentallongpollingoptions_interface)| Options that configure the SDK’s underlying network transport (WebChannel) when long-polling is used.<!---->Note: This interface is "experimental" and is subject to change.<!---->See <code>FirestoreSettings.experimentalAutoDetectLongPolling</code>, <code>FirestoreSettings.experimentalForceLongPolling</code>, and <code>FirestoreSettings.experimentalLongPollingOptions</code>. |
156
-
|[FirestoreDataConverter](./firestore_.firestoredataconverter.md#firestoredataconverter_interface)| Converter used by <code>withConverter()</code> to transform user objects of type <code>T</code> into Firestore data.<!---->Using the converter allows you to specify generic type arguments when storing and retrieving objects from Firestore. |
156
+
|[FirestoreDataConverter](./firestore_.firestoredataconverter.md#firestoredataconverter_interface)| Converter used by <code>withConverter()</code> to transform user objects of type <code>AppModelType</code> into Firestore data of type <code>DbModelType</code>.<!---->Using the converter allows you to specify generic type arguments when storing and retrieving objects from Firestore. |
157
157
|[FirestoreSettings](./firestore_.firestoresettings.md#firestoresettings_interface)| Specifies custom configurations for your Cloud Firestore instance. You must set these before invoking any other methods. |
158
158
|[Index](./firestore_.index.md#index_interface)| <b><i>(BETA)</i></b> The SDK definition of a Firestore index. |
159
159
|[IndexConfiguration](./firestore_.indexconfiguration.md#indexconfiguration_interface)| <b><i>(BETA)</i></b> A list of Firestore indexes to speed up local query execution.<!---->See [JSON Format](https://firebase.google.com/docs/reference/firestore/indexes/#json_format) for a description of the format of the index definition. |
0 commit comments