-
-
Notifications
You must be signed in to change notification settings - Fork 130
feat: Improve support for nested fragments #309
base: beta
Are you sure you want to change the base?
Conversation
4fbce42 to
89f8dfa
Compare
89f8dfa to
c3cc254
Compare
c3cc254 to
e9ca908
Compare
2d98783 to
05fbbd0
Compare
|
Hi, thanks for PR |
|
You’re welcome. I think this needs some additional work on handling
fragment spreads to work properly though, so let me have a look at that.
…On Sun, 16 May 2021 at 15:35, Vasiliy Ditsyak ***@***.***> wrote:
Hi, thanks for PR
I’ll check it this week
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#309 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA2UFS3P46BNWZBQXBCV3LLTN7J27ANCNFSM44XDC5ZQ>
.
|
|
@budde377 ok |
|
I think the changes needed are pretty big, so to test my hypothesis I created this project: https://pub.dev/packages/graphql_codegen Here I create "interfaces" for fragments and fields, instead of mixins, and create classes for operations and selection sets. I'll be using that package instead since I'm using the |
|
Hi, sorry for this half necro. I was wondering whether there are there any plans to integrate this into artemis (from either of both parties involved in this thread so far) as I hit several issues with nested fragments recently as well and got excited to see this being worked on. If there are still changes required, please let me know if I can look into it and where I should start! |
|
I ended up creating my own package with better fragment support:
https://pub.dev/packages/graphql_codegen
Here's a post outlining the motivation:
https://budde377.medium.com/structure-your-flutter-graphql-apps-717ab9e46a5d
…On Mon, Aug 23, 2021 at 8:49 AM geisterfurz007 ***@***.***> wrote:
Hi, sorry for this half necro. I was wondering whether there are there any
plans to integrate this into artemis (from either of both parties involved
in this thread so far) as I hit several issues with nested fragments
recently as well and got excited to see this being worked on.
If there are still changes required, please let me know if I can look into
it and where I should start!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#309 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA2UFSZU6EWPGFTCXKOW7RTT6HVPTANCNFSM44XDC5ZQ>
.
|
Make sure you're opening this pull request pointing to beta branch!
What does this PR do/solve?
This PR improves fragment support.
Given the schema:
and the query
This is an example of what Artemis currently generates:
The code above is not valid Dart code.
Instead, I believe it should be: