I need help with the following issue. I have the following JSON: (https://pastecode.io/s/sg2kJB0PLD)
"cities":
[
{
"name" : 'NYC',
"neighbourhoods":
{
"buildings":
[
{
"grade": "A",
},
{
"grade": "B"
},
{
"grade": "C"
}
]
}
},
{
"name" : 'CHICAGO',
"neighbourhoods":
{
"buildings":
[
{
"grade": "D",
},
{
"grade": "E"
},
{
"grade": "F"
}
]
}
}
]
I need to check if any building has a grade that equals "F" by using SQL Query over Cosmos Db.
Any resources will be greatly appreciated.
Thanks