Skip to content
Advertisement

Tag: google-cloud-firestore

Firestore FieldValue.increment()

I’m trying to use firebase.firestore.FieldValue.increment(), but FieldValue.increment() method is not available. I have attached an image contain available methods for firestore. This is my import: Please assist, maybe I am missing something here. Firestore Documentation Image of firebase.firestore.methods() EDIT 2: Below is the Firebase config import I did tried Doug’s export and it worked, but I’m wondering why after calling

How to add data to a nested object in Firestore

This is my current Firestore in Firebase. I need help adding data to the savedSearches map. I need to use .set() (because a users savedSearches might not exist). My current attempt looks like this: But this doesn’t add an object within savedSearches with a unique ID. When I was using Firebase Realtime Database I was just doing this: And that

Firestore != query error: Argument of type ‘”!=”‘ is not assignable to parameter of type ‘WhereFilterOp’.ts(2345)

I have an issue with my typescript compiler that i get error for this query : error : Argument of type ‘”!=”‘ is not assignable to parameter of type ‘WhereFilterOp’.ts(2345). any solution ? Answer Update your Firebase/Firestore libraries to the latest version. Not-equals queries were not available until very recently. According to the @google-cloud/firestore release notes, you need to be

Advertisement