node_modules/@google-cloud/firestore/build/src/write-batch.js
/**
     * Atomically commits all pending operations to the database and verifies all
     * preconditions. Fails the entire write if any precondition is not met.
     *
     * @returns {Promise.<Array.<WriteResult>>} A Promise that resolves
     * when this batch completes.
     *
     * @example
     * let writeBatch = firestore.batch();
     * let documentRef = firestore.doc('col/doc');
     *
     * writeBatch.set(documentRef, {foo: 'bar'});
     *
     * writeBatch.commit().then(() => {
     *   console.log('Successfully executed batch.');
     * });
     */
Atomically commits all pending operations to the database and verifies all
preconditions. Fails the entire write if any precondition is not met.

@returns {Promise.>} A Promise that resolves
when this batch completes.






Atomically commits all pending operations to the database and verifies all preconditions . Fails the entire write if any precondition is not met . @returns { Promise . > } A Promise that resolves when this batch completes .
commit() {
        const stack = Error().stack;
        return this.commit_().catch(err => {
            throw util_1.wrapError(err, stack);
        });
    }
commit ( ) { const stack = Error ( ) . stack ; return this . commit_ ( ) . catch ( err => { throw util_1 . wrapError ( err , stack ) ; } ) ; }
Atomically commits all pending operations to the database and verifies all
 preconditions.
Atomically commits all pending operations to the database and verifies all preconditions .
// Capture the error stack to preserve stack tracing across async calls.