MCPcopy Create free account
hub / github.com/NativeScript/firebase / update

Method update

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

Source from the content-addressed store, hash-verified

1195 update<T extends DocumentData = DocumentData>(documentRef: DocumentReference<T>, data: Partial<{ [K in keyof T]: T[K] | FieldValue }>): WriteBatch;
1196 update<T extends DocumentData = DocumentData, K extends keyof T = string>(documentRef: DocumentReference<T>, field: K | FieldPath, value: FieldValue | T[K], moreFieldAndValues: any[]): WriteBatch;
1197 update(documentRef: any, field: any, value?: any, moreFieldsAndValues?: any): WriteBatch {
1198 const data = createDictionary(field, value, moreFieldsAndValues);
1199 return WriteBatch.fromNative(this._native.updateDataForDocument(data as any, documentRef?.native));
1200 }
1201
1202 get native() {
1203 return this._native;

Callers

nothing calls this directly

Calls 2

createDictionaryFunction · 0.70
fromNativeMethod · 0.45

Tested by

no test coverage detected