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

Method update

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

Source from the content-addressed store, hash-verified

898 update(data: Partial<{ [K in keyof T]: FieldValue | T[K] }>): Promise<void>;
899 update(field: FieldPath | keyof T, value: any, moreFieldsAndValues: any[]): Promise<void>;
900 update(field: any, value?: any, moreFieldsAndValues?: any): Promise<void> {
901 return new Promise((resolve, reject) => {
902 const data = createDictionary(field, value, moreFieldsAndValues);
903 this._native.updateDataCompletion(data as any, (error) => {
904 if (error) {
905 reject(FirebaseError.fromNative(error));
906 } else {
907 resolve();
908 }
909 });
910 });
911 }
912
913 toJSON() {
914 return {

Callers

nothing calls this directly

Calls 2

createDictionaryFunction · 0.70
fromNativeMethod · 0.45

Tested by

no test coverage detected