-
Notifications
You must be signed in to change notification settings - Fork 72
Support InlineFragments #62
Comments
Hi @tberman! Currently this feature is not implemented. My initial thoughts on how to solve this is adding an annotation that links to a Nodes compatible class that can be traversed to build the fragment query, used like this.
I believe the implementation of this should not be too difficult, but have not looked into that yet. What are your thoughts on this? Would love to brainstorm on the best solution to this. |
Definitely happy to help sketch out an idea before working on it! One thing before starting though, with unions and interfaces w/o inline fragment support you can't pull fields out that aren't on the base interface (and in the union case, they are unaccessible). I think I guess I would think it wouldn't be too bad to have the data end up inside the fragment container, so something like:
And then when hydrating, we could put the data on user, so if you wanted
Thoughts? |
@shivamsk I am happy to work on a PR once we get to some kind of general agreement on how it should work API-wise! |
Is there any work around to this at the moment? |
Hi , thanks for your library. do you have any update on this support? |
Currently there doesn't appear to be a way to support inline fragments, I am looking to do something like:
I may have missed how to do this, I tried decorating a field with
@GraphQLProperty
but it gave me back something that looked far more like a field alias than an Inline Fragment.Thoughts?
If this is missing and there is consensus on how to do this, I'd be happy to put together a PR!
The text was updated successfully, but these errors were encountered: