Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(schema): throw error if duplicate index definition using unique in schema path and subsequent .index() call #15093

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

vkarpov15
Copy link
Collaborator

Fix #15056

Summary

Defining an index using unique in schema path and later calling schema.index() causes 2 indexes to be added, which is likely a user error.

Examples

… in schema path and subsequent `.index()` call

Fix #15056
@vkarpov15 vkarpov15 requested a review from hasezoey December 13, 2024 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

syncIndex failed creating index for the field with name 'key'
1 participant