aggregate()后面怎么写.field()?不知道怎么指定返回的字段
发布于 5 年前 作者 minyan 1571 次浏览 来自 官方Issues
db.collection('user').aggregate().geoNear({
  near: db.Geo.Point(ZuoBiao[0], ZuoBiao[1]),
  spherical: true,
  distanceField: 'distance',
})
.skip(0)
//这里的field()是哪个函数?
.end()
谢谢!!!

回到顶部