Custom graphiql
fetcher that uses Tauri's IPC system to resolve queries against a GraphQL endpoint.
$ pnpm add mizuki-graphiql-fetcher
# or
$ npm install mizuki-graphiql-fetcher
# or
$ yarn add mizuki-graphiql-fetcher
You need to register the plugin with Tauri first! Please see the top-level Readme for a full example.
Import and use the custom fetcher to connect to the GraphQL endpoint exposed over IPC.
import makeMizukiFetcher from 'mizuki-graphiql-fetcher'
import GraphiQL from "graphiql";
const fetcher = makeMizukiFetcher("my-plugin");
function MyGraphIQL() {
return <GraphiQL fetcher={fetcher}>
}