-
Notifications
You must be signed in to change notification settings - Fork 79
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
Amplify 10.6.1 breaks schema.graphql comment syntax #1170
Comments
+1 |
Yes, this is consistent. Sorry for missing the duplicate, apparently my search wasn't thorough enough. I'll keep an eye on that bug |
Hey @eettaa, Upgrading the CLI version to Amplify CLI v10.6.2 should resolve this issue. |
Hi @AnilMaktala thanks for this. |
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
14
Amplify CLI Version
10.6.1
What operating system are you using?
Linux
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
Nope
Describe the bug
Prior to Amplify 10.6.x,
schema.graphql
comments were allowed to be inlinee.g., this was valid:
... obviously, the comment was ignored/no index was created.
In Amplify 10.6.x, this now causes failures when you run any of the following:
amplify api gql-compile
amplfiy mock api
amplify push
The error is
🛑 Syntax Error: mismatched brackets found in the schema. Unexpected ) at line <number> in the schema.
Expected behavior
Comment semantics are not changed.
Reproduction steps
Create a toy schema
Add in the field I have provided above
Note that gql-compile fails.
Project Identifier
No response
Log output
Additional information
No response
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: