geoNear报错

发布于 8 年前作者 gongna12343 次浏览最后编辑 8 年前来自 issues
  • 当前 Bug 的表现(可附上截图)
  • 预期表现

  • 复现路径

  • 提供一个最简复现 Demo

const collection = db.collection(‘house’)

const { latitude, longitude } = event

let houseList = (await collection.where({

        location: db.command.geoNear({

        geometry: db.Geo.Point(+longitude, +latitude),

        minDistance: 100,

        maxDistance: 2000,

    })

}).get()).data

toJSO undefined  正常根据其他字段查是没问题的,求解

0 回复
暂无回复