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()