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.
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.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.