-
I got a mySQL database which has articles in it. Articles can have categories and labels. There are the following tables: article (id, title, content) Now I get the following schema:
What I want to achieve is that in articles I get something like this:
And in categories :
How can I achieve this? Thanks for help! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 14 replies
-
Hi @appcoders 👋🏼 Could you also provide the list of the GraphQL queries that match your initial SQL schema? (the one SQL schema generated by the In the meantime, please know that our documentation provides a complete example (with a linked repository) that reproduces a use-case similar to yours: https://www.graphql-mesh.com/docs/getting-started/combine-multiple-sources#setup-hierarchy-with-nested-queries Best, |
Beta Was this translation helpful? Give feedback.
-
Hi @charlypoly, currently I am stuck here:
As the only generated query from sql is:
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I've read the conversation and I think you need something like following which looks a bit complicated but instead we can handle this kind of relationships automatically in Mesh. @appcoders Please see my PR; |
Beta Was this translation helpful? Give feedback.
-
@ardatan Awesome made my day 🌞 |
Beta Was this translation helpful? Give feedback.
I've read the conversation and I think you need something like following which looks a bit complicated but instead we can handle this kind of relationships automatically in Mesh. @appcoders Please see my PR;
#3993
And you can test it with the canaries CI pushes and It will post the versions as a comment soon