Unable To Use Firebase.firestore.fieldvalue.increment
There is a method provided by firestore to increment a numeric value. But I was not able to use the function because it is undefined. I tried updating firebase in npm, tried reinst
Solution 1:
The problem is that the FieldValue is not accessible through the app instance.
So I solved my problem by importing directly from "firebase" instead of my local file which exports an initialized firebase instance.
Post a Comment for "Unable To Use Firebase.firestore.fieldvalue.increment"