You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @capaj! Thanks for forking and extending this! I'm trying to implement GraphQL with TypeORM, so far so good, the GraphQL part is working pretty nicely, but I am not sure how I should pass the right request to Typeorm, expecially while loading relationships and relations of relations:
Now I manually have to provide the relation field here, but that is far from ideal.. Can the GrapHQL request be 'automatically converted' to a TypeORM request that automatically selects the right relations and relations of relations?
The text was updated successfully, but these errors were encountered:
yes it can. We actually do exactly the same thing, but for objection on our @LeapLabs Looop api.
Although this functionality lies out of scope for decapi. Decapi's only job is to take arbitrary Typescript classes with methods as resolvers and generate a GQL schema.
What you need is to take TypeORM classes on input and generate decapi compatible resolvers for their relations. It would need to be developed as a separate plugin/library.
I will take a peek at it if I get some time, but no promises. I am quite busy ATM, so my delivery times are anywhere from month to half a year.
Hi @capaj! Thanks for forking and extending this! I'm trying to implement GraphQL with TypeORM, so far so good, the GraphQL part is working pretty nicely, but I am not sure how I should pass the right request to Typeorm, expecially while loading relationships and relations of relations:
So I have the following Graph:
I have the following resolver:
Now I manually have to provide the relation field here, but that is far from ideal.. Can the GrapHQL request be 'automatically converted' to a TypeORM request that automatically selects the right relations and relations of relations?
The text was updated successfully, but these errors were encountered: