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

compile: syntax error due to multiline comment #134

Closed
MrSaints opened this issue Jan 11, 2018 · 2 comments
Closed

compile: syntax error due to multiline comment #134

MrSaints opened this issue Jan 11, 2018 · 2 comments

Comments

@MrSaints
Copy link

MrSaints commented Jan 11, 2018

The output of get-schema (via schema.graphql) appears to include descriptions in multiline comment blocks. For example:

"""The ID of the object."""
id: ID!

Resulting in the following when compile is executed:

GraphQLError: Syntax Error GraphQL request (9:3) Expected Name, found String

I did not have this issue prior to upgrading. Any idea how I can resolve this?

This happened after going from: "graphql-cli": "2.0.4", -> "graphql-cli": "2.9.4",

@MrSaints
Copy link
Author

MrSaints commented Jan 11, 2018

Whoops, sorry. Ignore this. I'm getting my tooling mixed up! This appears to be a problem with relay-compiler.

Related to: facebook/relay#2251, and graphql/graphql-js#927

@pranaygp
Copy link

w.r.t relay, This has been fixed in 1.5.0-rc.1, which uses the latest version of graphql where the fix has been implemented.

Please update to that version (or 1.5.0 once it's released) if you want this fixed

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

2 participants