Closed drortirosh closed 3 years ago
Hi Dror,
For cases like these the recommended approach is to add a .graphql
or .graphqls
file with the needed custom types in your project. This file is then picked up by the schema discovery that the plugin performs (see docs at https://jimkyndemeyer.github.io/js-graphql-intellij-plugin/docs/developer-guide). Unless you use something like globs to pick up your schema for your GraphQL endpoint service this should have no effect on the runtime behaviour and only assist this plugin.
I'll close it for now, this can be solved by creating a separate graphql file with all the necessary type definitions exactly as described by @jimkyndemeyer. Feel free to ask more questions and reopen the issue if you still have some issues with schema configuration.
Support adding custom global types to the scheme. I'm trying to the plugin with TheGraph scheme,
e.g. https://thegraph.com/docs/define-a-subgraph#from-an-example-subgraph
There are few scalar types (
BigInt
andBytes
) and directives (@entity
,@derivedFrom
) that need to be defined globally.Is it possible to add global types to the configuration file ?