Skip to content

Programmatically add compound indexes #164

@epicfaace

Description

@epicfaace

We've added the following compound indexes through the mlab UI. We need to use .index on the mongoose schemas (https://mongoosejs.com/docs/guide.html#indexes) to add these in programmatically.

This way, if we run this code with another database backend, the indexes will be created automatically.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions