Hello friends!
I am facing a problem when using with Typegoose, I am trying to allow users to create the same documents, but when using this plugin, I am getting error code 11000 when creating the document I am creating already existed before.
Here is my code, if I'm wrong please help me
Model.ts
Hello friends! I am facing a problem when using with Typegoose, I am trying to allow users to create the same documents, but when using this plugin, I am getting error code 11000 when creating the document I am creating already existed before. Here is my code, if I'm wrong please help me Model.ts
Error message:
Thank all!