是否可以在不返回子对象的情况下查询cosmos db?我想要以下结果:
[{"groupId":1,"name":"group1"},{"groupId":2,"name":"group2"}]
来自以下内容:
{
"groups":
[
{
"groupId":1,
"name":"group1",
"subgroups":
[
{
"subGroupId":1,
"name":"subgroup1"
},
{
"subGroupId":2,
"name":"subgroup2"
}
]
},
{
"groupId":2,
"name":"group2",
"subgroups":
[
{
"subGroupId":1,
"name":"subgroup1"
},
{
"subGroupId":2,
"name":"subgroup2"
}
]
}
]
}
我希望它不带触发器就这么纯净地选择。