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

Method commit

packages/firebase-firestore/index.android.ts:1288–1302  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1286 }
1287
1288 commit(): Promise<void> {
1289 return new Promise((resolve, reject) => {
1290 org.nativescript.firebase.firestore.FirebaseFirestore.WriteBatch.commit(
1291 this.native,
1292 new org.nativescript.firebase.firestore.FirebaseFirestore.Callback<java.lang.Void>({
1293 onSuccess(param0) {
1294 resolve();
1295 },
1296 onError(error) {
1297 reject(FirebaseError.fromNative(error));
1298 },
1299 })
1300 );
1301 });
1302 }
1303
1304 delete(documentRef: DocumentReference) {
1305 return WriteBatch.fromNative(this.native.delete(documentRef.native));

Callers

nothing calls this directly

Calls 1

commitMethod · 0.65

Tested by

no test coverage detected