Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simulate undefined properties update error #191

Open
LorenzoSantoro94 opened this issue May 14, 2024 · 0 comments
Open

Simulate undefined properties update error #191

LorenzoSantoro94 opened this issue May 14, 2024 · 0 comments

Comments

@LorenzoSantoro94
Copy link

By default, Firestore throws error when calling update with an object containing undefined values.
Behavior is described here https://firebase.google.com/docs/reference/js/v8/firebase.firestore.Settings#optional-ignoreundefinedproperties
It would be nice simulating the same exception (or not if disabled) with this library.

Basic example

db.collection('myCollection').doc(id).update({
prop: undefined
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant