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
Hi there, thanks for all the hard work! Just wondering if anyone knows the best way to include the directive in graphql-config so GraphQL LS can pick it up. Without including it explicitly the language server fails, preventing "jump to definition" and other features from working at all.
I did get it to work by copying and pasting the constraint definition from type-defs.js into a separate .graphql file then including that in the list of schemas in the configuration:
but this doesn't seem like the best approach. I've tried just including type-defs.js from node-modules but that didn't work, possibly because it's just a string not a gql template? The docs on graphql-config and the LS aren't that thorough either so not sure if there is something I am missing there.
Thanks!!
The text was updated successfully, but these errors were encountered:
Hi there, thanks for all the hard work! Just wondering if anyone knows the best way to include the directive in graphql-config so GraphQL LS can pick it up. Without including it explicitly the language server fails, preventing "jump to definition" and other features from working at all.
I did get it to work by copying and pasting the constraint definition from type-defs.js into a separate
.graphql
file then including that in the list ofschema
s in the configuration:but this doesn't seem like the best approach. I've tried just including type-defs.js from node-modules but that didn't work, possibly because it's just a string not a
gql
template? The docs on graphql-config and the LS aren't that thorough either so not sure if there is something I am missing there.Thanks!!
The text was updated successfully, but these errors were encountered: