Skip to content
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

Support bare selection sets in cynic-querygen. #70

Merged
merged 1 commit into from
Jul 20, 2020

Conversation

obmarg
Copy link
Owner

@obmarg obmarg commented Jul 20, 2020

Why do we need this change?

When working on the GraphiQL version of querygen, I noticed that it was quite
easy to generate a bare selection set (as in a query without the query prefix).
GraphiQL supports this, and GraphQL explorer will even create one under certain
circumstances.

What effects does this change have?

This updates querygen to do the right thing for these bare selection sets - it
assumes they're queries and generates code accordingly. Not sure if these can
also be mutations, may get to that when/if we support them.

@obmarg obmarg merged commit de919ce into master Jul 20, 2020
@obmarg obmarg deleted the fix-querygen-selection-sets branch July 20, 2020 20:47
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.

1 participant