Questions tagged [google-cloud-firestore]
Cloud Firestore is an auto-scaling real-time document database for storing, syncing, and querying data for mobile, web and server development.
google-cloud-firestore
42,813
questions
0
votes
0
answers
20
views
can't assign docs of nested query firebase collection to a List<class>
I'm have been trying to get all data of collection a and subcollection b and insert them into a List of model to use that list later to show data in a ListView builder , problems are:
1- I can't get ...
0
votes
0
answers
11
views
Firebase read permissions breaking write permissions
I'm trying to write storage rules in firebase. There are 3 levels of user in my app- admin, agent, and client.
A client should be able to write to their own 'Request'
Admins can read everything
Agents ...
-3
votes
0
answers
15
views
How to differentiate when to use relational databases and real time databases? [closed]
I want to implement a database for a software development project I am working on. I want to figure out whether I should use a relational database and a real time database.
I tried using MySQL and I ...
-2
votes
0
answers
40
views
ValueError: JSON string "{" is not valid json [closed]
I have a serviceAccountKey.json file with the following code
{
"type": "service_account",
"project_id": "...",
"private_key_id": "...&...
1
vote
0
answers
31
views
How can I update/create multiple documents in a collection in firebase?
I'm trying to use a default collection in firebase that a user can overwrite with their own values and save elsewhere.
I have a default collection from which the initial values will be drawn, and have ...
0
votes
1
answer
22
views
How to filter query on a nested object in Firestore
I have nested an object inside my Firestore objects and am trying to filter based on it ..but it returns no object. here is what my nested objects look like :
Now in my function whenever I do ...
0
votes
0
answers
33
views
Multiple "whereField" clauses not working as expected in SwiftUI and Firestore. No error thrown, the data returned is incorrect [closed]
Trying to query a firestore collection as below. Data returned is inaccurate.
db.collection("myCollection")
.whereField("date", isGreaterThanOrEqualTo: Timestamp(date: ...
0
votes
1
answer
25
views
Android Fetching Data from Firebase Firestore Error
I create an app that is fetching some data from Firebase Firestore and display them on a list. While the app is starting is not fetching the data and this error occurs.
W/ConnectionTracker( 4843): ...
0
votes
1
answer
53
views
fetch only one data of single document instead of all documents
I'm trying to fetch all data of documents inside the collection but unfortunately the code only fetch data of one single document.
const Charities = ({navigation}) => {
const [...
0
votes
1
answer
19
views
Remove item from Reference List
I have a database „Users“ which contains the List<Doc Reference (users)> „Friendlist“. I am displaying this friendlist with Dynamic Children Querying in a Listview, each viewItem contains a ...
0
votes
2
answers
22
views
How do I get just one singular field out of a Firestore document and add it to a new document?
I am trying to make a chat where at the top of each message it displays the user's name on the top of each document they add when they send each message but I am unable to get the single field without ...
0
votes
1
answer
19
views
How to I get data from a firestore collection within a document that requires an argument?
I am trying to create and admin chat where the admin can view all the user messages and then reply to them I have been able to add documents to this collection but I am unable to display the messages ...
0
votes
0
answers
20
views
SwiftUI and FirestoreQuery property wrapper - Pagination?
I'm new to using the property wrapper for FirestoreQuery and I'm confused how to handle pagination.
@FirestoreQuery(collectionPath: "users") private var users: [Users]
Would this simply ...
0
votes
1
answer
60
views
Swift Multidatepicker doesn't recognize dates loaded from Firebase
I have an issue where when dates are loaded from firebase into my MultiDatePicker, the onChange function does not recognize dates that are already in the "selectedDates" array, instead re-...
0
votes
1
answer
48
views
How to retrieve and fetch data from a document's field on firebasefirestore? [duplicate]
I am trying to fetch data from a document on a Firebase's collection that contains users:
As you can see, there is a collection named Users and two users, and now I click on one you get to see the ...