How to avoid writing the Schema of Mongoose twice when using it with TypeScript? How to avoid writing the Schema of Mongoose twice when using it with TypeScript? mongoose mongoose

How to avoid writing the Schema of Mongoose twice when using it with TypeScript?


Or alternatively, perhaps Mongoose is not the right ODM solution if I am using TypeScript? Is there a better solution?

I would be happy to offer you this library: https://github.com/doublemcz/mongo-odm

It is based on Native Client with focus on ease-of-use.