GraphiQL API Documentation
Preparing search index...
@graphiql/react
useSchemaContext
Function useSchemaContext
useSchemaContext
()
:
{
fetchError
:
string
|
null
;
introspect
:
()
=>
Promise
<
void
>
;
isFetching
:
boolean
;
schema
:
MaybeGraphQLSchema
;
validationErrors
:
readonly
GraphQLError
[]
;
}
Returns
{
fetchError
:
string
|
null
;
introspect
:
()
=>
Promise
<
void
>
;
isFetching
:
boolean
;
schema
:
MaybeGraphQLSchema
;
validationErrors
:
readonly
GraphQLError
[]
;
}
fetchError
:
string
|
null
introspect
:
()
=>
Promise
<
void
>
isFetching
:
boolean
schema
:
MaybeGraphQLSchema
validationErrors
:
readonly
GraphQLError
[]
Deprecated
Use
useGraphiQLActions
and
useGraphiQL
hooks instead.
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
GraphiQL API Documentation
Loading...
Deprecated
Use
useGraphiQLActionsanduseGraphiQLhooks instead.