Skip to content

syncIndexes check same index #8135

@libaochuan90

Description

@libaochuan90

before

schema.createIndex({ a: 1, b: 1 });

after

schema.createIndex({ b:1, a: 1 });
Model.syncIndexes();

It dose not drop index {a: 1, b: 1}

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugWe've confirmed this is a bug in Mongoose and will fix it.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions