Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

1 vote
0 answers
22 views

Expected behaviour using firestore.MergeAll?

I have a Go application, which uses Firestore to store data. When updating a document, I'm passing a map of data to Firestore, but it behaves differently, depending on whether I'm using firestore....
CentoKili53's user avatar
3 votes
1 answer
45 views

Firestore pricing related to collectionReferences

How many reads are counted for the following query? fireClient.Collections(ctx).GetAll() will the following query result in 1 read or will it depend on the number of subcollections? fireclient....
Ghost's user avatar
  • 98
1 vote
1 answer
79 views

Does the Firestore client instance need to be closed explicitly?

I have an application which uses Firestore and is hosted on Cloud Run. I have a global variable which holds the client instance, and my question is whether it needs to be closed explicitly, since the ...
whit3.oc7opus's user avatar
1 vote
1 answer
29 views

How to handle nested pointers in Firestore's DataTo method?

I have the following structs: type Address struct { Line1 string `firestore:"line1"` City string `firestore:"city"` } type User struct { Name string `firestore:&...
CentoKili53's user avatar
1 vote
1 answer
52 views

Get updated values for nested fields in Firestore document

I am trying to implement a trigger (as a google cloud function) in golang that gets invoked when a firestore document is updated. I am following the documentation give here: https://cloud.google.com/...
Amit Gupta's user avatar
2 votes
1 answer
87 views

Read Firestore from GCP Cloud Function

I have a basic function written in Go and deployed to GCP (not a Firebase Cloud Function, a GCP Cloud Function). I need this function to access a single collection in Firestore to retrieve a token to ...
RusskiT's user avatar
  • 226
1 vote
0 answers
46 views

Firebase does not return JSON array field

Something strange for me going on in Firestore database. I save there multiple documents as a JSON that include arrays. I can see this array in document at Firestore console but when I'am trying to ...
Alex F's user avatar
  • 3,425
0 votes
0 answers
27 views

Employee document does not get updated in Firestore

I am trying to update a document in firestore database. But following code does not update the document. func UpdateEmployee(w http.ResponseWriter, r *http.Request) { mu.Lock() defer mu....
Shreyas Awankar's user avatar
2 votes
1 answer
66 views

PermissionDenied error while trying to read from Firestore with the Go SDK

I setup a test database with the following configuration rules for development: rules_version = '2'; service cloud.firestore { match /databases/{database}/documents { match /{document=**} { ...
André Luiz Tiago Soares's user avatar
3 votes
1 answer
913 views

How can I connect to a non-default firestore database using Go?

I saw there is a post about connecting to a non-default firestore database using node. I am wondering if anyone is aware of the same feature in the firestore Go package? I have tried a direct ...
Marco van Staden's user avatar
1 vote
0 answers
60 views

Why can I not catch the does not exist error inside a transaction when updating in Firestore?

I am trying to catch a not-exists document error and provide a more specific error message on failure, but the update method never returns an error in the callback of the transaction. I have ensured ...
Adam Johnston's user avatar
1 vote
1 answer
38 views

Is it possible to query over specific document ids in firestore?

So, I have userProject collection with projectId and userId. I get all projects of some specific user by using query = db.Collection("userProject").Where("user_id","==",...
Sandeep Acharya's user avatar
1 vote
1 answer
55 views

How do I fetch data from nosql database in strict order?

I am using the Firestore database. I have to fetch the data from Firestore in a specific order. My Approach: I have a collection of documents in a collection named section with an integer field order ...
Sandeep Acharya's user avatar
2 votes
0 answers
29 views

how to use NewAggregationQuery in firestore with golang [duplicate]

I found that NewAggregationQuery is a method of firestore Query. I have a query, something like q = fs.Collection("profiles").Where("age", "==", 18) res, err := q....
Mquinteiro's user avatar
  • 1,072
2 votes
1 answer
171 views

Casting firestore "integer_value" to integer

Using the Golang Firestore 1.8 library, I'm trying to use the new-ish count() functions Google's Firestore introduced last fall. The docs don't seem to have examples yet, not that I've found, but I've ...
Brent's user avatar
  • 825

15 30 50 per page
1
2 3 4 5
9