We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d7e9c3 commit e9c09beCopy full SHA for e9c09be
firestore/main/index.js
@@ -38,7 +38,7 @@ function initializeAppSA() {
38
// [START initialize_app_service_account]
39
40
var serviceAccount = require("path/to/serviceAccountKey.json");
41
-
+
42
admin.initializeApp({
43
credential: admin.credential.cert(serviceAccount)
44
});
@@ -285,7 +285,7 @@ function updateServerTimestamp(db) {
285
286
// [START update_with_server_timestamp]
287
// Get the `FieldValue` object
288
- var FieldValue = require("firebase-admin").FieldValue;
+ var FieldValue = require("firebase-admin").firestore.FieldValue;
289
290
// Create a document reference
291
var docRef = db.collection('objects').doc('some-id');
0 commit comments