In a Mongoose Schema which pattern adds a 2dsphere index to a location key?

前端 未结 0 706
梦如初夏
梦如初夏 2020-11-22 08:04

Environment: Mongoose, Node.js

Adding a 2dsphere index after the fact can be done with,

db.bar.createIndex({point:"2dsphere"         


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