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

Method update

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

Source from the content-addressed store, hash-verified

155 }
156
157 update(values: { [key: string]: any }, onComplete?: (error: FirebaseError) => void): Promise<void> {
158 return new Promise((resolve, reject) => {
159 this.native.onDisconnectUpdateChildValuesWithCompletionBlock(serializeItems(values), (error, ref) => {
160 if (error) {
161 const err = FirebaseError.fromNative(error);
162 onComplete?.(err);
163 reject(err);
164 } else {
165 onComplete?.(null);
166 resolve();
167 }
168 });
169 });
170 }
171}
172
173function toFIRDataEventType(event: EventType): FIRDataEventType {

Callers

nothing calls this directly

Calls 2

serializeItemsFunction · 0.70
fromNativeMethod · 0.45

Tested by

no test coverage detected