Skip to content
Advertisement

Tag: google-cloud-firestore

How to delete a field inside Firestore document – The field’s key contains dots

I am trying to delete a field inside a Firestore document using the KeyPath method. In other words, I am converting the request body into keyPath string. Example, converting the below request body: Into keyPath: “preferences.settings.v1.4.3” and then using this keyPath to delete the path using the following method This would work normally if the keyPath string doesn’t contains dots.

I want to connect react and firebase

I have problem with Firebase and React. This problem is after click to my add-data button for adding data to database. I get this console.log Reference_impl.ts:482 Uncaught TypeError: db._checkNotDeleted is not a function at ref (Reference_impl.ts:482:1) at insertData (Modal.js:44:1) at HTMLUnknownElement.callCallback (react-dom.development.js:4164:1) at Object.invokeGuardedCallbackDev (react-dom.development.js:4213:1) at invokeGuardedCallback (react-dom.development.js:4277:1) at invokeGuardedCallbackAndCatchFirstError (react-dom.development.js:4291:1) at executeDispatch (react-dom.development.js:9041:1) at processDispatchQueueItemsInOrder (react-dom.development.js:9073:1) at processDispatchQueue (react-dom.development.js:9086:1)

Advertisement