Skip to content

InlineFragment: read selectionset from QueryBuilderInterface #58

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 26, 2021

Conversation

jorrit
Copy link
Contributor

@jorrit jorrit commented May 26, 2021

I want to add UNION support to php-graphql-oqm. I need some additional functionality in php-graphql-client's InlineFragment for this.

@mghoneimy
Copy link
Owner

Hi @jorrit ! Your changes look good to me, I just want to ubderstand the bigger picture to merge this.

How are you planning to use these changes for the UNION feature? And why not implement an InlineFragmentBuilder instead of this? Or os this actually the plan and this change is the first step?

Thanks

@jorrit
Copy link
Contributor Author

jorrit commented Jul 19, 2021

I need this change for a different change at https://github.com/mghoneimy/php-graphql-oqm/pull/20/files#diff-cc96cce19a60f5c2ba1e03b619908ac52bb35f9d84267a80a1355f453ffbcfec. I need to instantiate the InlineFragment and add fields to the field set later. If a separate builder class seems better architecturally, I will change it. I just wanted to reuse code as much as possible.

@mghoneimy
Copy link
Owner

This should be good for now to unblock your usecase

@mghoneimy mghoneimy merged commit 02c5c71 into mghoneimy:master Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants