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

Method update

packages/firebase-firestore/index.ios.ts:202–205  ·  view source on GitHub ↗
(documentRef: any, field: any, value?: any, moreFieldsAndValues?: any)

Source from the content-addressed store, hash-verified

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;
202 update(documentRef: any, field: any, value?: any, moreFieldsAndValues?: any): Transaction {
203 const data = createDictionary(field, value, moreFieldsAndValues);
204 return Transaction.fromNative(this._native.updateDataForDocument(data as any, documentRef?.native));
205 }
206
207 set<T extends DocumentData = DocumentData>(documentRef: DocumentReference<T>, data: T, options?: SetOptions): Transaction {
208 let transaction;

Callers

nothing calls this directly

Calls 2

createDictionaryFunction · 0.70
fromNativeMethod · 0.45

Tested by

no test coverage detected