MCPcopy Index your code
hub / github.com/NativeScript/firebase / get

Method get

packages/firebase-firestore/index.ios.ts:189–198  ·  view source on GitHub ↗
(documentRef: DocumentReference<T>)

Source from the content-addressed store, hash-verified

187 }
188
189 get<T extends DocumentData = DocumentData>(documentRef: DocumentReference<T>): Promise<DocumentSnapshot<T>> {
190 // TODO check error returned
191 return new Promise((resolve, reject) => {
192 try {
193 resolve(DocumentSnapshot.fromNative(this._native.getDocumentError(documentRef.native)));
194 } catch (e) {
195 reject(e);
196 }
197 });
198 }
199
200 update<T extends DocumentData = DocumentData>(documentRef: DocumentReference<T>, data: Partial<{ [K in keyof T]: T[K] | FieldValue }>): Transaction;
201 update<T extends DocumentData = DocumentData, K extends keyof T = string>(documentRef: DocumentReference<T>, field: K | FieldPath, value: T[K], moreFieldsAndValues: any[]): Transaction;

Callers

nothing calls this directly

Calls 1

fromNativeMethod · 0.45

Tested by

no test coverage detected