收藏
回答

aggregate()后面怎么写.field()?不知道怎么指定返回的字段

db.collection('user').aggregate().geoNear({
  near: db.Geo.Point(ZuoBiao[0], ZuoBiao[1]),
  spherical: true,
  distanceField: 'distance',
})
.skip(0)
//这里的field()是哪个函数?
.end()
谢谢!!!

回答关注问题邀请回答
收藏

2 个回答

登录 后发表内容
问题标签