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

发布于 7 年前作者 minyan1810 次浏览最后编辑 7 年前来自 issues
db.collection('user').aggregate().geoNear({
  near: db.Geo.Point(ZuoBiao[0], ZuoBiao[1]),
  spherical: true,
  distanceField: 'distance',
})
.skip(0)
//这里的field()是哪个函数?
.end()
谢谢!!!

2 回复