The-Ultimate-Guide-to-TypeScript-With-Mongoose icon indicating copy to clipboard operation
The-Ultimate-Guide-to-TypeScript-With-Mongoose copied to clipboard

Creating indexes in mongoose

Open kasir-barati opened this issue 4 years ago • 0 comments

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'.

kasir-barati avatar Aug 14 '21 13:08 kasir-barati