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 GraphQL syntax for empty types #471

Closed
cjhowedev opened this issue Jan 24, 2018 · 1 comment
Closed

Support GraphQL syntax for empty types #471

cjhowedev opened this issue Jan 24, 2018 · 1 comment

Comments

@cjhowedev
Copy link

cjhowedev commented Jan 24, 2018

GraphQL supports a new syntax for types where you don't include the body. This is because you can use the extend keyword to add fields to that type later.

type Query
type Mutation

This is a common use of it. It currently breaks in GitHub as it is pretty new, but it is part of the GraphQL JS reference implementation. A similar breakage happens with this package, where everything after the first type is unhighlighted. This includes Javascript code after the GraphQL string.

@gandm gandm closed this as completed in 9f8fa42 Jan 24, 2018
@cjhowedev
Copy link
Author

Seems to work great with the latest release! Thanks again!

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

No branches or pull requests

1 participant