apollo-link-gun
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.4 • Public • Published

    title: apollo-link-gun description: Use graphql-gun with Apollo

    CI

    The gun link provides a connection to gundb, via the graphql-gun package.

    Installation

    npm install apollo-link-gun --save

    Usage

    import { ApolloClient } from "apollo-client";
    import { InMemoryCache } from "apollo-cache-inmemory";
    import { GunLink } from "apollo-link-gun";
     
    // Schema is optional if you want validation
    import schema from "./path/to/your/schema";
     
    const graphqlClient = new ApolloClient({
      cache: new InMemoryCache(),
      link: new GunLink({ schema }),
    });

    Options

    The GunLink constructor can be called with an object with the following properties:

    • schema: an optional graphql schema for validation

    Keywords

    none

    Install

    npm i apollo-link-gun

    DownloadsWeekly Downloads

    5

    Version

    0.0.4

    License

    MIT

    Unpacked Size

    22 kB

    Total Files

    16

    Last publish

    Collaborators

    • brysgo1