-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[relay-compiler] Compiler fails to parse .graphql with new comment syntax #2251
Comments
I second this issue.
|
A temporary solution besides using JSON is passing printSchema(schema, {
commentDescriptions: true,
}); |
My schema is being generated by a third-party library. @benjie is that something we can do in postgraphile / graphile-build ? |
You can generate it yourself using something like this: https://gist.github.com/benjie/446380c4167edfc532a88f2034514049 |
Neat. A bit more complicated than would be ideal, but a solution none the less. Thank you :) |
This has been fixed in Please update to that version (or 1.5.0 once it's released) if you want this fixed |
@jstejada This can be closed. |
|
The
relay-compiler
is unable to parse the new multi-line comment syntax used byprintSchema
in thegraphql
package. It's pretty trivial to switch over to a JSON file (instead of .graphql) but this should probably be fixed anyhow.Given a
schema.graphql
file containing this:the command
relay-compiler --src ./src --schema ./data/schema.graphql
produces:The text was updated successfully, but these errors were encountered: