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

Method update

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

Source from the content-addressed store, hash-verified

534 });
535 }
536 update(values: { [key: string]: any }, onComplete?: (error: FirebaseError) => void): Promise<void> {
537 return new Promise((resolve, reject) => {
538 NSDatabaseReference().update(
539 this.native,
540 serializeItems(values, true),
541 new org.nativescript.firebase.database.FirebaseDatabase.Callback({
542 onSuccess(param0) {
543 onComplete?.(null);
544 resolve();
545 },
546 onError(param0) {
547 const err = FirebaseError.fromNative(param0);
548 onComplete?.(err);
549 reject(err);
550 },
551 })
552 );
553 });
554 }
555}
556
557export class ThenableReference extends Reference implements IThenableReference {

Callers

nothing calls this directly

Calls 2

serializeItemsFunction · 0.70
updateMethod · 0.65

Tested by

no test coverage detected