Js-graphql-intellij-plugin: Unknown directive @client

Created on 9 Dec 2019  路  3Comments  路  Source: jimkyndemeyer/js-graphql-intellij-plugin

Before you create the issue

Version and Environment Details

__Operation system__:
MacOS Catalina 10.15.1
__IDE name and version__:
WebStorm 2019.3
__Plugin version__:
2.2.0

Expected Behaviour

no error highliting on @client directive

Actual Behaviour

it says Unknown directive @client
Screenshot 2019-12-09 at 14 59 17

Steps to Reproduce / Link to Repo with Reproduction and Instructions

Most helpful comment

I think this would be enough of a common use case to warrant a section in the docs.

All 3 comments

Hi Viktor.

Thanks for using the plugin.

This is intended behaviour as the plugin ships with the built-in directives and should mark unknown directives as errors.

See https://github.com/jimkyndemeyer/graphql-config-examples/tree/master/extend-client-fields-and-directives for how to set this up properly.

Thank you!

I think this would be enough of a common use case to warrant a section in the docs.

Was this page helpful?
0 / 5 - 0 ratings