const db = uniCloud.database()
const $ = db.command.aggregate
let res
let centerpoint={
distanceField: 'distance',
spherical: true,
near:new db.Geo.Point(obj.centerpoint.longitude, obj.centerpoint.latitude),
key: 'point', // 若只有 location 一个地理位置索引的字段,则不需填
includeLocs: 'point',
}
res = db.collection('home').aggregate().geoNear(centerpoint).end()
res中无distance字段值返回