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

Method update

packages/firebase-database/index.ios.ts:507–520  ·  view source on GitHub ↗
(values: { [key: string]: any }, onComplete?: (error: FirebaseError) => void)

Source from the content-addressed store, hash-verified

505 }
506
507 update(values: { [key: string]: any }, onComplete?: (error: FirebaseError) => void): Promise<void> {
508 return new Promise((resolve, reject) => {
509 this.native.updateChildValuesWithCompletionBlock(serializeItems(values), (error, ref) => {
510 if (error) {
511 const err = FirebaseError.fromNative(error);
512 onComplete?.(err);
513 reject(err);
514 } else {
515 onComplete?.(null);
516 resolve();
517 }
518 });
519 });
520 }
521}
522
523export class ThenableReference extends Reference implements IThenableReference {

Callers

nothing calls this directly

Calls 2

serializeItemsFunction · 0.70
fromNativeMethod · 0.45

Tested by

no test coverage detected