I need to query from CosmosDB for items that has a null array of data like a [null].
I tried query like this query SELECT TOP 1 c.id from c where ARRAY_CONTAINS(c.data1, [[null]], true). My intent is to query something like this.
SELECT TOP 1 c.id from c where ARRAY_CONTAINS(c.data1, [[null]], true)
NO result is returned for the above query.
var sampledata = `{
"id": 48259,
"data": [
[
{
"Elements": [
{
"QS": "",
"TypeC": "C",
"Id": 378,
"R": false,
"KTime": "0",
"AllKVal": "",
"KVal": "2",
"IsGreen": false
}
]
}
],
[
null,
{
"Elements": [
{
"QS": "",
"TypeC": "CM",
"Id": 243,
"R": "",
"KTime": "0",
"AllKVal": "",
"V": true,
"KVal": "2",
"IsGreen": false
}
]
}
]
],
"_ts": 1560943024
}`;



I has solved only half the problem only, it gives the pattern [null] but [null]. Your second sql is for what? Any further sample data? What's you expected result? - Jay Gong