收藏
回答

为什么云开发数据库根据geoNear统计不出总数啊?

        const _ = db.command
    const count = await db.collection('products').where({
      goods_type: event.goodsType,
      city: event.city,
      location: _.geoNear({
         geometry: db.Geo.Point(event.longitude, event.latitude),
        minDistance: 1,
        maxDistance: 200000,
        })
    }).count()
回答关注问题邀请回答
收藏

1 个回答

  • Iron
    Iron
    2020-08-06

    2020-08-06
    有用
    回复
登录 后发表内容
问题标签