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

Absolute imports in graphql files #651

Open
timscott opened this issue May 23, 2023 · 1 comment
Open

Absolute imports in graphql files #651

timscott opened this issue May 23, 2023 · 1 comment

Comments

@timscott
Copy link

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.

@timscott
Copy link
Author

timscott commented Nov 2, 2023

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

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

1 participant