1
我有這個文件
{
"_id" : "8cbc4fdc79d5479c95deaab471d359bb",
"category" : "test",
"location" : {
"name" : "Café Café",
"coordinates" : {
"type" : "Point",
"coordinates" : [
34.788589,
32.0857813
]
}
}
}
而這個查詢返回0的記錄上CosmosDB,而是基於真實的MongoDB
db.activities.find({'location.coordinates': { $near :{$geometry: { type: "Point", coordinates: [ 34.788589, 32.0857813 ] }}}})
而''geoNear''似乎還不支持。 –