How to use the @google-cloud/firestore.DocumentReference function in @google-cloud/firestore

To help you get started, we’ve selected a few @google-cloud/firestore examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github 1amageek / pring-admin.ts / lib / batch.js View on Github external
update(documentRef, data) {
        if (documentRef instanceof firebase.firestore.DocumentReference) {
            this._writeBatch.update(documentRef, data);
        }
        if (documentRef instanceof FirebaseFirestore.DocumentReference) {
            this._adminWriteBatch.update(documentRef, data);
        }
        return this;
    }
    /**