mongodb group聚合问题,如何才能只返回"count" , "keys" ,"ok" ,不返回 “retval”? 10
mongodbgroup聚合,会返回像这样一个的数据:{"retval":[{"name":"zs","count":227},{"name":"ls","count":...
mongodb group聚合,会返回像这样一个的数据:
{
"retval" : [
{
"name" : "zs",
"count" : 227
},
{
"name" : "ls",
"count" : 72
},
{
"name" : "gongchang",
"count" : 613
},
{
"name" : "xz",
"count" : 2217
}
],
"count" : 20,
"keys" : 4,
"ok" : 1
}
我想问的是,如何才能不返回 “retval”?
木有分了,求大侠帮帮我 展开
{
"retval" : [
{
"name" : "zs",
"count" : 227
},
{
"name" : "ls",
"count" : 72
},
{
"name" : "gongchang",
"count" : 613
},
{
"name" : "xz",
"count" : 2217
}
],
"count" : 20,
"keys" : 4,
"ok" : 1
}
我想问的是,如何才能不返回 “retval”?
木有分了,求大侠帮帮我 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询