Skip to content
This repository was archived by the owner on Oct 14, 2025. It is now read-only.
This repository was archived by the owner on Oct 14, 2025. It is now read-only.

Programmatically add compound indexes #164

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