You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The schema language isn't supported yet for editing scenarios. The schema scratch file option appears to be an unintended side-effect of introducing support for traditional GraphQL scratch files.
Here more background regarding the schema language support from an earlier issue:
As it stands, the .graphqls support is considered read-only and requires that a valid parse tree can be created for syntax highlighting. It was added as a means of showing the currently loaded schema that the plugin uses for completion, error highlighting, and for providing find usages etc.
I logged graphql/codemirror-graphql#14 a short while ago since schema editing would be a useful addition. Until that issue is implemented, you should edit your schema file with another file extension to prevent the errors-as-you-type from popping up the console.
For now, I'll see if the schema scratch file option can be removed until it's fully supported. This should avoid confusing users.
Hello.
I wanted to create a graphql schema in a scratch file. So I'm opening a GraphQL Schema scratch and input a simple Node interface:
But the editor marks all except
id
andID
as invalid.Here's the screenshot:
Why is that?
Thank you.
The text was updated successfully, but these errors were encountered: