Using Node.js and Mongoose at what location in Schema do I include index: '2dsphere' to avoid “unable to find index for $geoNear query” error?

前端 未结 0 1996
庸人自扰
庸人自扰 2020-12-21 11:36

Environment: Node.js, Mongoose

I\'m searching for documents based on their proximity to a specific long and lat. Unfortunately my code keeps trigger

相关标签:
回答
  • 消灭零回复
提交回复
热议问题