Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save CacheControl/eba072506ac0cac52b99ede91e237b77 to your computer and use it in GitHub Desktop.
Save CacheControl/eba072506ac0cac52b99ede91e237b77 to your computer and use it in GitHub Desktop.
Apollo rover "Could not parse partial schema as AST."

"Could not parse partial schema as AST."

Ran into this when using rover to parse a graphql schema that had a syntax error. The issue was caused by double quotes in a graphql comment, something allowed by the framework I was using to render the schema (DGS).

"""Placing quotes around "strings" in graphql comments causes this error""""  # INVALID

The fix is to remove or replace the double quotes, e.g.

"""Placing quotes around 'strings' in graphql comments causes this error""""  # VALID
@bkalbs
Copy link

bkalbs commented Mar 23, 2022

Thank you! Just ran into this error and finding this saved me a bunch of debugging time. 👏 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment