You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See screenshot, GetOrders Query correctly runs, GetOrderIds fails with the error seen to the right
{
"errors": [
{
"message": "The specified fragment `OrderFragment` is not used within the current document.",
"extensions": {
"fragment": "OrderFragment",
"specifiedBy": "http://spec.graphql.org/June2018/#sec-Fragments-Must-Be-Used"
}
}
]
}
The fragment is being used by the Query GetOrders
Expected Behavior
GetOrderIds correctly runs
Steps to Reproduce the Problem Or Description
Create .graphql file and add a fragment and two queries which run against the same api endpoint, one utilises the fragment one does not.
Actual Behavior
See screenshot, GetOrders Query correctly runs, GetOrderIds fails with the error seen to the right
The fragment is being used by the Query GetOrders
Expected Behavior
GetOrderIds correctly runs
Steps to Reproduce the Problem Or Description
Create .graphql file and add a fragment and two queries which run against the same api endpoint, one utilises the fragment one does not.
Specifications
schema: http://localhost:5254/graphql?sdl
documents: "src/**/*.{graphql,js,ts,jsx,tsx}"
extensions: {
languageService: {
cacheSchemaFileForLookup: true
},
endpoints: {
default: {
url: " http://localhost:5254/graphql",
},
},
}
Logs Of TS Server || GraphQL Language Service
NetworkHelper: operation: query
NetworkHelper: endpoint: http://localhost:5254/graphql
The text was updated successfully, but these errors were encountered: