Field is not used #222
Answered
by
JoviDeCroock
timothyarmes
asked this question in
Q&A
-
This picture really tells the story: VSCode is underlining the fields in the query, telling me that they're not used How can I stop that? I'm not even sure what the cause is. |
Beta Was this translation helpful? Give feedback.
Answered by
JoviDeCroock
Feb 21, 2024
Replies: 1 comment 2 replies
-
This issue will be transferred to https://github.com/0no-co/GraphQLSP where it belongs but you can do So something like {
"compilerOptions": {
"plugins": [
{
"name": "@0no-co/graphqlsp",
"schema": "./schema.graphql",
"trackFieldUsage": false
}
]
}
} |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
JoviDeCroock
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue will be transferred to https://github.com/0no-co/GraphQLSP where it belongs but you can do
trackFieldUsage: false
in yourtsconfig
. This way of using the documents is one that I have personally not seen before 😅So something like