Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Delete a field from Firebase Firestore where the field/key has a period/punctuation (".") - modular v9 JavaScript SDK

import { updateDoc, deleteField, FieldPath } from "firebase/firestore";
...
updateDoc(cityRef, new FieldPath("example.com"), deleteField());
 
PREVIOUS NEXT
Tagged: #Delete #field #Firebase #Firestore #modular #JavaScript #SDK
ADD COMMENT
Topic
Name
4+6 =