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

Use the introspection query provided by Sangria #2

Merged
merged 2 commits into from
Oct 30, 2017

Conversation

jonas
Copy link
Collaborator

@jonas jonas commented Oct 25, 2017

It seems better safer to use Sangria's version which tracks the JS reference implementation pretty closely.

@jonas jonas requested a review from muuki88 October 25, 2017 18:31
val response = Http(url)
.headers(headers)
.param("query", introspectQuery.renderCompact)
.param("query", sangria.introspection.introspectionQuery.renderCompact)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can put this as a proper import if this PR is deemed useful.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's damn useful :)
I must have overseen the introspection query from sangria. this is way better

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah. Maybe in a proper import. Feel free to merge ❤️

Copy link
Owner

@muuki88 muuki88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

@jonas jonas merged commit 25b0349 into master Oct 30, 2017
@jonas jonas deleted the sangria-introspection-query branch October 30, 2017 00:06
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