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
import { createGraphiQLFetcher } from "@graphiql/toolkit";
import { GraphiQL } from "graphiql";
import React from "react";
import ReactDOM from 'react-dom';
import { createRoot } from "react-dom/client";
import "graphiql/graphiql.css";
const fetcher = createGraphiQLFetcher({ url: "https://xxx" });
ReactDOM.render(<div style={{ height: "100vh" }}>
<GraphiQL schema={schema} fetcher={fetcher}></GraphiQL>
</div>, document.body);
Introspection on the fetcher destination is disabled and there is a schema file locally, so I would like to read the local schema file and use it for the document.
Is it possible? thank you
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to build Graphiql
Introspection on the fetcher destination is disabled and there is a schema file locally, so I would like to read the local schema file and use it for the document.
Is it possible? thank you
Beta Was this translation helpful? Give feedback.
All reactions