#Mongodb with Typeorm
1 messages · Page 1 of 1 (latest)
I'd suggest not using TypeORM with Mongoose, unless you are using TypeORM with some other database and just want to keep with the same ORM and ways of doing things it offers.
If you are only using MongoDB, the best solution is Mongoose, with Typegoose and the Typegoose Nest module (which I maintain). And you can do relations with them, but many-to-many in MongoDB is generally only possible via a junction collection, where it holds the references to the two other collections holding the actual data. In other words, TypeORM couldn't do many-to-many either.
so one to one and onr to many realations are working in typeorm mongoose