Skip to content

Reopen: Configuration to disable inclusion of embedded document schema index definitions #5575 #8343

@armaserg

Description

@armaserg

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

No one assigned

    Labels

    docsThis 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 feature

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions