piglovesyou/graphql-let

Absolute imports in graphql files

timscott opened this issue · 1 comments

Feature request: Support absolute paths in imports.

Allow this:
# import 'lib/fragments/FoobarFields.graphql'

In place of this:
# import '../../../../lib/fragments/FoobarFields.graphql'

Particularly helpful since my editor does not autocomplete path nodes in a graphql file.

This feature would greatly simplify code reorgs. I'm currently untangling a big one, and this would have saved a lot of time.