<{ | “structuredQuery”: {
“where”: {
“fieldFilter”: {
“field”: {
“fieldPath”: “level1”
},
“op”: “EQUAL”,
“value”: {
“stringValue”: “onboarding”
}
}
},
“from”: [
{
“collectionId”: “Data”
}
]
}
}
→
i cant query JSON data from firestore
Problem in node ‘Google Cloud Firestore1‘
Error : Unexpected token in JSON at position 2
Is there any problem with this Json query?
- **Running n8n via npm
- Operating system:Windows
Hi @Hussein_Al_Massalkhi
Welcome to the community 
Can you try this as your JSON, without that | character in before "structuredQuery"
?
{
"structuredQuery": {
"where": {
"fieldFilter": {
"field": {
"fieldPath": "level1"
},
"op": "EQUAL",
"value": {
"stringValue": "onboarding"
}
}
},
"from": [
{
"collectionId": "Data"
}
]
}
}
1 Like
i found better code to implement , thanks for your support!!
1 Like
system
Closed
5
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.