DEV Community

Discussion on: Simple example GraphQL(Schema First) with NestJS 9.x/10.x/11.x 😻

Collapse
 
tony133 profile image
Antonio Tripodi • Edited

Hi,

For the first question, if I understand correctly, you are looking for documentation on how to create relationships between tables with Typeorm, right? you can see in the official documentation, see here: typeorm.io/relations
I personally don't have a favorite ORM, in this tutorial I used TypeORM because I saw that it is the most used with NestJS and so I used that :-), but you can use whatever you prefer :-)  

While for the second question regarding the GraphQL 1+n problem in this example is not implemented, I was planning to make a separate post or update this one, just due to lack of time I could not do it :-)
To get an example you can take a look at this link: wanago.io/2021/02/08/api-nestjs-n-..., you can find many more examples about NestJS ( relations, etc..)

i hope i was helpful