Skip to content

Creating indexes in mongoose #1

@kasir-barati

Description

@kasir-barati

Hi you can not create indexes like what you did in this line

you get the following error messages:

Argument of type '{ 'email': number; }' is not assignable to parameter of type 'IndexSpecification'.
  Object literal may only specify known properties, and ''email'' does not exist in type 'IndexSpecification'.

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