I’m trying to get the value of ‘createTime’ alone for all the documents. But it throws me an ‘undefined error’
MY FORMULA:
outputs[“HTTP request”].resBodyParsed[‘createTime’]
FIREBASE RESPONSE SCHEMA:
"documents": [
{
"name": "projects/mocktables/databases/(default)/documents/products/1",
"fields": {
"id": {
"integerValue": "1"
}
"createTime": "2023-03-11T14:05:20.736608Z",
"updateTime": "2023-03-11T14:05:20.736608Z"
}
What am I trying to do?
Fetch the value of ‘createTime’ and value for ‘id’ field from the response and alert it.
NOTE: This is relatively easy for any other REST API. But,firestore populates the response inside the ‘documents’ array. Hence, I don’t know how to access it