Skip to content
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

How can I use IntelliJ's graphql plugin? #77

Open
drortirosh opened this issue Jul 6, 2021 · 2 comments
Open

How can I use IntelliJ's graphql plugin? #77

drortirosh opened this issue Jul 6, 2021 · 2 comments

Comments

@drortirosh
Copy link

The plugin is very nice at validating the graphql schema.
However, it requires to add the following 4 lines:

directive @entity on OBJECT
directive @derivedFrom(field:String!) on FIELD_DEFINITION
scalar BigInt
scalar Bytes

It compiles correctly but fails (at runtime!, after deployment) because Bytes, BigInt are redefined

How can I have a graphql file that is valid both for "graph deploy" and for the graphql plugin?

@schmidsi
Copy link

schmidsi commented Jul 7, 2021

Thanks for the issue. Unfortunately, the schema.graphql to be consumed by the graph-node is a bit special and is not compatible with all the standard GraphQL tooling at the moment.

@schmidsi
Copy link

schmidsi commented Jul 7, 2021

Maybe you can configure IntelliJ's GraphQL plugin to ignore our extensions (@entity, @derivedFrom, BigInt, Bytes, etc)? Or that it assumes that they are defined globally?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants