mizuki-graphiql-fetcher
v1.0.0
Published
A toolkit for building Tauri Plugin that enables type-safe IPC through GraphQL.
Downloads
70
Readme
mizuki-graphiql-fetcher
Custom graphiql
fetcher that uses Tauri's IPC system to resolve queries against a GraphQL endpoint.
Install
$ pnpm add mizuki-graphiql-fetcher
# or
$ npm install mizuki-graphiql-fetcher
# or
$ yarn add mizuki-graphiql-fetcher
Usage
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}>
}