Skip to content

Instantly share code, notes, and snippets.

@grxy
Created August 24, 2023 21:17
Show Gist options
  • Save grxy/aad8571d8270400caba6f708846c409b to your computer and use it in GitHub Desktop.
Save grxy/aad8571d8270400caba6f708846c409b to your computer and use it in GitHub Desktop.
graphql-eslint require-import-fragment bug
fragment MyFragment on Query {
myField
}
query MyQuery {
...MyFragment
}
# import MyFragment from '0-file-with-fragment.graphql'
query MyQuery {
...MyFragment
}
#import './0-file-with-fragment.graphql'
query MyQuery {
...MyFragment
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment