(documentRef: DocumentReference<T>)
| 230 | } |
| 231 | |
| 232 | get<T extends DocumentData = DocumentData>(documentRef: DocumentReference<T>): Promise<DocumentSnapshot<T>> { |
| 233 | // TODO check error returned |
| 234 | return new Promise((resolve, reject) => { |
| 235 | try { |
| 236 | resolve(DocumentSnapshot.fromNative(this._native.get(documentRef.native))); |
| 237 | } catch (e) { |
| 238 | reject(e); |
| 239 | } |
| 240 | }); |
| 241 | } |
| 242 | |
| 243 | update<T extends DocumentData = DocumentData>(documentRef: DocumentReference<T>, data: Partial<{ [K in keyof T]: T[K] | FieldValue }>): Transaction; |
| 244 | update<T extends DocumentData = DocumentData, K extends keyof T = string>(documentRef: DocumentReference<T>, field: K | FieldPath, value: T[K], moreFieldsAndValues: any[]): Transaction; |
nothing calls this directly
no test coverage detected