Spurious error: The field __schema
does not exist on Query
#889
Labels
bug 🐛
Oh no! A bug or unintented behaviour.
__schema
does not exist on Query
#889
I am getting a warning
The field
__schemadoes not exist on
Query, but the GraphQL document expects it to exist.
. @JoviDeCroock on Spectrum advised that likely this is a spurious console warning that should be suppressed. This error happens only when I load the devtools, but I've been advised that I should file the bug here (which I noticed after filing it there as urql-graphql/urql-devtools#269 -- have closed that issue)urql version & exchanges: "urql": "^1.9.8"; "urql-persisted-queries": "^0.1.0"; "@urql/exchange-graphcache": "^3.0.1", "@urql/exchange-populate": "^0.1.8", "@urql/exchange-retry": "^0.1.8"
Steps to reproduce
This sandbox reproduces the error: https://codesandbox.io/s/urql-devtools-no-like-schema-rawr-163fs
I prepared the schema to feed to the cacheExchange using the script given in the docs, taking it from most recent stable release of apollo-server. Queries work and tools like insomnia happily gather the schema, so I think introspection is working correctly on the server side. The first part of my schema.json file is
Expected behavior
No warnings from console.
Actual behavior
Here is the snipped error callstack from the console:
I'm using Chrome browser with most recent devtools plugin (Version 2.1.0, installed July 1). Package file:
I'm hoping this is straigtforward to reproduce, but happy to gather more data as needed..
The text was updated successfully, but these errors were encountered: