I’m going to get “upcomingMatches” from > Category = Honor and Country = Chile
API Url : https://firestore.googleapis.com/v1/projects/test-d03ac/databases/(default)/documents/Club/VBQMMKZlyqeYlhzmVa528LblHfC3:runQuery
API Body :
{
“structuredQuery”: {
“from”: [
{
“collectionId”: “upcomingMatches”
}
],
“where”: {
“compositeFilter”: {
“filters”: [
{
“fieldFilter”: {
“field”: {
“fieldPath”: “Filters.Category”
},
“op”: “EQUAL”,
“value”: {
“stringValue”: “Honor”
}
}
},
{
“fieldFilter”: {
“field”: {
“fieldPath”: “Filters.Country”
},
“op”: “EQUAL”,
“value”: {
“stringValue”: “Chile”
}
}
}
],
“op”: “AND”
}
}
}
}
This is the tool you’ll use for creating the body it will help you a lot
Parent(url in the google tool api): projects/test-d03ac/databases/(default)/documents/Club/VBQMMKZlyqeYlhzmVa528LblHfC3
Body
Response :
[{
“document”: {
“name”: “projects/test-d03ac/databases/(default)/documents/Club/VBQMMKZlyqeYlhzmVa528LblHfC3/upcomingMatches/202003062300mi8fdXFvY2g52IDHVKS8H9m5yPr2”,
“fields”: {
“Player2”: {
“mapValue”: {
“fields”: {
“ID”: {
“stringValue”: “dakshgdas”
},
“FullName”: {
“stringValue”: “- - - - -”
},
“Picture”: {
“stringValue”: “- - - - -”
}
}
}
},
“Player1”: {
“mapValue”: {
“fields”: {
“ID”: {
“stringValue”: “mi8fdXFvY2g52IDHVKS8H9m5yPr2”
},
“FullName”: {
“stringValue”: “D. Coglitore”
},
“Picture”: {
“stringValue”: “http://res.cloudinary.com/dcfaahtoy/image/upload/v1583083064/2019/iehbhccimtt4rjbferkk.jpg”
}
}
}
},
“Filters”: {
“mapValue”: {
“fields”: {
“City”: {
“stringValue”: “Concepcion”
},
“Category”: {
“stringValue”: “Honor”
},
“Mode”: {
“stringValue”: “Singles”
},
“Country”: {
“stringValue”: “Chile”
}
}
}
},
“Status”: {
“mapValue”: {
“fields”: {
“Value”: {
“stringValue”: “Finished”
},
“Reason”: {
“stringValue”: “Game Finished without score given”
}
}
}
},
“Player4”: {
“mapValue”: {
“fields”: {
“Picture”: {
“stringValue”: “- - - - -”
},
“ID”: {
“stringValue”: “- - - - -”
},
“FullName”: {
“stringValue”: “- - - - -”
}
}
}
},
“MatchID”: {
“stringValue”: “202003062300mi8fdXFvY2g52IDHVKS8H9m5yPr2”
},
“Date”: {
“mapValue”: {
“fields”: {
“Complete”: {
“stringValue”: “March 06, 2020”
},
“Format”: {
“stringValue”: “2020-03-06”
}
}
}
},
“Club”: {
“mapValue”: {
“fields”: {
“ID”: {
“stringValue”: “VBQMMKZlyqeYlhzmVa528LblHfC3”
},
“Picture”: {
“stringValue”: “https://res.cloudinary.com/dcfaahtoy/image/upload/v1578071094/2019/LogoClubDeTenisDeConcepcion.png”
},
“Name”: {
“stringValue”: “Club de Tenis de Concepcion”
}
}
}
},
“Time”: {
“mapValue”: {
“fields”: {
“Complete”: {
“stringValue”: “23:00”
},
“Format”: {
“stringValue”: “23-00”
}
}
}
},
“Score”: {
“stringValue”: “NA”
},
“Player3”: {
“mapValue”: {
“fields”: {
“Picture”: {
“stringValue”: “- - - - -”
},
“ID”: {
“stringValue”: “ASDasd”
},
“FullName”: {
“stringValue”: “asdasd”
}
}
}
}
},
“createTime”: “2020-03-07T01:07:39.928846Z”,
“updateTime”: “2020-03-09T21:07:06.521173Z”
},
“readTime”: “2020-04-14T15:04:58.711755Z”
}
,