Our basic Cosmos query looks like this:
This produces results such as the following:
[
{
"c": {
"id": "...",
"Foo": 1,
}
},
{
"c": {
"id": "...",
"Foo": 2,
}
}
]
Instead, we could generate the following simpler star-based query:
SELECT VALUE c FROM root c
Which produces:
[
{
"id": "...",
"Foo": 1,
},
{
"id": "...",
"Foo": 2,
}
]
Our basic Cosmos query looks like this:
This produces results such as the following:
[ { "c": { "id": "...", "Foo": 1, } }, { "c": { "id": "...", "Foo": 2, } } ]Instead, we could generate the following simpler star-based query:
Which produces:
[ { "id": "...", "Foo": 1, }, { "id": "...", "Foo": 2, } ]