syncIndex failed creating index for the field with name 'key' #15056
Labels
developer-experience
This issue improves error messages, debugging, or reporting
Milestone
Prerequisites
Mongoose version
8.7.0
Node.js version
18.18.0
MongoDB server version
6.0.19
Typescript version (if applicable)
No response
Description
Schema
The index key_1 already exists in the DB, but the function call ObjectKey.syncIndexes() throws an error:
Steps to Reproduce
Expected Behavior
Should ignore creating existing index.
The text was updated successfully, but these errors were encountered: