-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Labels
docsThis issue is due to a mistake or omission in the mongoosejs.com documentationThis issue is due to a mistake or omission in the mongoosejs.com documentationenhancementThis issue is a user-facing general improvement that doesn't fix a bug or add a new featureThis issue is a user-facing general improvement that doesn't fix a bug or add a new feature
Milestone
Description
This topic was discussed here: #5575
It looks like the problem was fixed in mongosee 4.13
But, does it work now?
There is no documentation about this: https://mongoosejs.com/docs/search.html?q=excludeIndexes :(
I have such schemas:
const TechnologySchema: Schema = new Schema({
name: {type: String, unique: true, excludeIndexes: true}
}, {excludeIndexes: true});
const ProjectSchema: Schema = new mongoose.Schema({
name: String,
technologies: [TechnologySchema],
}, {excludeIndexes: true});
But in 'projects' collection I still have 'technologies.name' unique index :(
How can I prevent this?
thanks!
Metadata
Metadata
Assignees
Labels
docsThis issue is due to a mistake or omission in the mongoosejs.com documentationThis issue is due to a mistake or omission in the mongoosejs.com documentationenhancementThis issue is a user-facing general improvement that doesn't fix a bug or add a new featureThis issue is a user-facing general improvement that doesn't fix a bug or add a new feature