urql-graphql / urql-devtools

A tool for monitoring and debugging urql during development
https://formidable.com/open-source/urql/docs/advanced/debugging/#devtools
MIT License
257 stars 11 forks source link

to support load schema from local rather than sending a request to the server when app starts #397

Open Albert-Gao opened 2 years ago

Albert-Gao commented 2 years ago

Hi,

great tools, love it! just a quick request

the @urql/exchange-graphcache has an option to load local schema like this:

import { cacheExchange } from '@urql/exchange-graphcache'
import schema from '../../gql/introspected'

export const cache = cacheExchange({
  schema,
})

can we have a feature in the devtool to load the local schema plz? thanks

my server is protected so without the ability of adding auth header when sending introspection query, it won't work :(

if we can support adding headers when sending introspection query #398 , then this would not be needed :)