querySnapshotFromJSON
Builds a QuerySnapshot
instance from a JSON object created by
QuerySnapshot.toJSON.
function querySnapshotFromJSON<AppModelType, DbModelType extends DocumentData = DocumentData>(
db: Firestore,
json: object,
converter: FirestoreDataConverter<AppModelType, DbModelType>,
): QuerySnapshot<AppModelType, DbModelType>;§
Builds a QuerySnapshot
instance from a JSON object created by
QuerySnapshot.toJSON.
§Parameters
§Return Type
§
an instance of QuerySnapshot if the JSON object could be parsed. Throws a FirestoreError if an error occurs.
§
querySnapshotFromJSON<AppModelType, DbModelType extends DocumentData = DocumentData>(db: Firestore, json: object, converter: FirestoreDataConverter<AppModelType, DbModelType>): QuerySnapshot<AppModelType, DbModelType>
[src]Builds a QuerySnapshot
instance from a JSON object created by
QuerySnapshot.toJSON.
§Parameters
§
converter: FirestoreDataConverter<AppModelType, DbModelType>
[src]- Converts objects to and from Firestore.
§Return Type
§
QuerySnapshot<AppModelType, DbModelType>
[src]an instance of QuerySnapshot if the JSON object could be parsed. Throws a FirestoreError if an error occurs.