firebase deploy only function
firebase deploy --only functions:functionNameHere
firebase deploy only function
firebase deploy --only functions:functionNameHere
firestore create document with auto id
// Add a new document with a generated id.
db.collection("cities").add({
name: "Tokyo",
country: "Japan"
})
.then(function(docRef) {
console.log("Document written with ID: ", docRef.id);
})
.catch(function(error) {
console.error("Error adding document: ", error);
});
---------------------------
//If you want to specify id then use .set()
// e.x \/
db.collection("cities").doc("TYO").set({
name: "Tokyo",
country: "Japan"
})
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us