I’m trying to do an API call to firestore that returns the documents of a collection that match a criteria. Anyone has done this before? Maybe not with a http request?
I tried the query request as well but my search is in the collection and not inside the documents.
In this example I want to return the documents in which the field group_whapi_id is 120363284199911614@g.us
I get the error:
“[400] Invalid JSON payload received. Unknown name “group_whapi_id”: Cannot bind query parameter. Field ‘group_whapi_id’ could not be found in request message.”
What do the api docs say? Is the query parameter supported for this call?
2 Likes
YEs I just need to run a query on firestore to return a document, but i’m a little bit lost on how to do it
Welcome to the Make community!
Are you trying to use the projects.databases.documents.listDocuments endpoint?
GET https://firestore.googleapis.com/v1/{project}/databases/{databaseId}/documents/{collectionId}
Are you sure the {databaseId}
should be (default)
with the brackets?
Are you sure the group_whapi_id
should go into the “Query String” field instead of a JSON property in the Body field?
2 Likes