Replies: 1 comment 2 replies
-
Sounds interesting! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think it would be extremely useful to support the following style of
#import
ingraphql-import
:#import X from "require:myModule/schema.graphql"
Or even better, in the case of
main
being set to an SDL already:#import X from "require:myModule"
This is done pretty easily with the addition of a small snippet which provides an absolute path to a given module:
It's really just a simplification from having to find the
node_modules
directory as a relative path from the file currently being processed.Beta Was this translation helpful? Give feedback.
All reactions