Skip to content

Compiler errors at schema description #3376

@marcotoniut

Description

@marcotoniut

While using another tool to generate the schema, I found out that the relay compiler errors whenever there's a string description above the topmost schema declaration.

"Description of the schema"
schema {
  query: RootQueryType
  mutation: RootMutationType
}

yields

ERROR:
Syntax Error: Expected "schema", found String "Description of the schema"
error Command failed with exit code 100.

After digging around for a bit, I found out that there has been a spec update to graphql which incorporates the ability to add descriptions at this level. Am I right to assume that relay is still catching up to it?
https://github.com/graphql/graphql-spec/pull/466/files

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions