-
Notifications
You must be signed in to change notification settings - Fork 94
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
Apollo Link State queries not supported #129
Comments
Is it possible to temporarily ignore the errors from these Apollo Link State's queries ? |
It's just underlining them with red, beyond that everything's fine. |
I would argue that underlining them in red is not fine. That causes the IDE to label the code as invalid. I rely on that indicator heavily while coding to find syntax mistakes. Reading the commit comments it looks like a fix for this is in progress? |
If you add the following into your GraphQL schema, it should prevent this from showing as an error. directive @client on FIELD |
What tool do you use to combine server side (Apollo server) schema and client side schema (Apollo Link State) to work with this plugin? |
The 2.0 alpha follows the latest GraphQL language draft spec as of June 2018. As part of that, the plugin will pick up any client fields and directives that you declare as part of your client schema using GraphQL SDL. Use the See 2.0.0-alpha-2 if you'd like to try it and help test it. Edit: Directives placed on the schema types and fields appear to be reported as invalid locations and don't show up in completions. Expect this to be fixed in an upcoming alpha. |
Schema directives fixed in https://github.com/jimkyndemeyer/js-graphql-intellij-plugin/releases/tag/2.0.0-alpha-3 |
Apollo Link State (client state handling for Apollo) uses the
@client
directive for queries that query the local state. They can look like this:These seem to not be supported in the plugin, see attached:
The text was updated successfully, but these errors were encountered: