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

Add description to schema parser and printer #222

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

phil303
Copy link

@phil303 phil303 commented Dec 9, 2018

Descriptions are now part of the graphql spec. This commit brings graphql-core inline with the spec.

There's an additional commit in here that fixes the indent function in the printer. It's not a requirement for handling descriptions.

One note, the business logic in here is heavily lifted from the JS reference implementation.

The indent function wasn't actually indenting. Add the indent to
the function and fix up the one call site.
@phil303 phil303 force-pushed the add-description-2 branch 2 times, most recently from 0af0dbc to 845fefb Compare December 9, 2018 04:28
@phil303 phil303 force-pushed the add-description-2 branch 3 times, most recently from 3f62fa8 to 93574c3 Compare December 12, 2018 04:58
Descriptions are now part of the [graphql spec](https://facebook.github.io/graphql/June2018/#sec-Descriptions).
This commit brings graphql-core inline with the spec.
@phil303
Copy link
Author

phil303 commented Mar 31, 2019

@jkimbo @syrusakbary Hey guys, what can I do to move this PR forward?

@gizmo385
Copy link

gizmo385 commented Apr 4, 2019

@jkimbo @syrusakbary +1

This feature would be really useful as other GraphQL libraries in other languages support descriptions.

@jkimbo jkimbo requested a review from dan98765 April 6, 2019 16:54
@waxlamp
Copy link

waxlamp commented Jun 21, 2019

Another vote for getting this merged (cc @jkimbo and @syrusakbary). Thanks for this, @phil303!

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.

3 participants