Created
August 24, 2023 21:17
-
-
Save grxy/aad8571d8270400caba6f708846c409b to your computer and use it in GitHub Desktop.
graphql-eslint require-import-fragment bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fragment MyFragment on Query { | |
myField | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query MyQuery { | |
...MyFragment | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# import MyFragment from '0-file-with-fragment.graphql' | |
query MyQuery { | |
...MyFragment | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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