Help with retrieving one document and extracting the document fields into variables (ESP32 and Cloud Firestore) #531
Answered
by
mobizt
tanseowsean
asked this question in
Q&A
-
Referring to the example at https://github.com/mobizt/Firebase-ESP-Client/blob/main/examples/Firestore/GetDocument/GetDocument.ino, the retrieval of one document can be carried out in this manner: How do I retrieve the fields in the document to be stored into variables for comparison/processing purposes? Is there any way to do so? |
Beta Was this translation helpful? Give feedback.
Answered by
mobizt
Jul 12, 2023
Replies: 1 comment 9 replies
-
You should parse your document for required fields. You also can use runQuery to filter the result. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to know the Firestore REST API to use the library.
And you should understand the function parameters related to the Firestore REST API.
The library function description for runQuery is here.
Firebase-ESP-Client/examples/Firestore/DataQuery/DataQuery.ino
Line 150 in 277a2ab
And you will see the link to Firestore REST API documentation related to that function and parameters.