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

Method commit

packages/firebase-firestore/index.ios.ts:1151–1161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1149 }
1150
1151 commit(): Promise<void> {
1152 return new Promise((resolve, reject) => {
1153 this.native.commitWithCompletion((error) => {
1154 if (error) {
1155 reject(FirebaseError.fromNative(error));
1156 } else {
1157 resolve();
1158 }
1159 });
1160 });
1161 }
1162
1163 delete(documentRef: DocumentReference): WriteBatch {
1164 return WriteBatch.fromNative(this.native.deleteDocument(documentRef.native));

Callers

nothing calls this directly

Calls 1

fromNativeMethod · 0.45

Tested by

no test coverage detected