Category : google-cloud-firestore

A web page calls a Firebase function that should get several records from a Firestore collection, Everything runs without error but no data is returned. When I run the query in the page directly (not via the function), the right data is returned. In the web page: var getUserConfigFiles = firebase.functions().httpsCallable(‘getUserConfigFiles’); getUserConfigFiles() .then((result) => { ..

Read more

I am trying to get a user from a document meant to hold user data. The document holds this data First: "Josh" Last: "Solders" email: "[email protected]" phone: "7865572525" superAdmin: "on" userID: "admin-1" I run this function: export const getAdmins = functions.https.onCall(async (data, context) => { var admins: FirebaseFirestore.DocumentData[] = []; admin.firestore().collection("admin").get().then((querySnapshot) => { var c ..

Read more

On my web page and android application, I am using Firebase for both authentication and also Database (FireStore) Today I found out that there is no way to clear the Chace after a user logs out. Please refer to: https://github.com/firebase/firebase-android-sdk/issues/466 Also Firebase official documentation states that offline persistence should be disabled in-order to ensure better ..

Read more

I’m getting Uncaught TypeError: Converting circular structure to JSON in Chrome when I log some firebase get function snapshot, and couldn’t find a way to properly solve this. I’m trying to convert the object with JSON.stringify and results this VM310:1 Uncaught TypeError: Converting circular structure to JSON –> starting at object with constructor ‘FirebaseAppImpl’ | ..

Read more

This is my firestore users scheme @collection "users": { [ … "geopoint": {lat:37, long:45}, "age": 45, "skills":["Programmer", "Architecture", "Biker"], "gender": "male" … ], [ … "geopoint": {lat:47, long:44}, "age": 24, "skills":["Programmer", "Biker", "Painter"], "gender": "femail" … ], … } is there an effective way to query on all these fields without losing performance? Source: Ask ..

Read more