When using Mongoose is there a difference when an index is included in a Schema vs when the index() method is called on the Schema?

后端 未结 0 786
花落未央
花落未央 2020-12-22 02:15

Environment: Mongoose, Node.js

To the best of my understanding I can add an index in 2 ways. Does it make a difference which method is

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