Model.cleanIndexes()
Parameters
- [callback] «Function» optional callback
Returns:
- «Promise,undefined» Returns
undefined
if callback is specified, returns a promise if no callback.
Deletes all indexes that aren’t defined in this model’s schema. Used by syncIndexes()
.
The returned promise resolves to a list of the dropped indexes’ names as an array
当前内容版权归 mongoosejs 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 mongoosejs .