1.0.1 • Published 5 months ago

mizuki-graphiql-fetcher v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

mizuki-graphiql-fetcher

Npm

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}>
}

License

MIT © Tony Mushah

1.0.1

5 months ago

1.0.0

6 months ago