Skip to content

Utilities for using ApolloClient to interact with Solid Pods

License

Notifications You must be signed in to change notification settings

travis/solid-apollo

Repository files navigation

solid-apollo

npm version travis npm downloads

apollo client for solid

Basic Usage

import { ApolloProvider } from '@apollo/react-hooks';
import { ApolloClient } from 'apollo-client'
import { SolidLink } from 'solid-apollo'

const client = new ApolloClient({
  cache: new InMemoryCache({ addTypename: false }),
  link: new SolidLink(context, ["https://tvachon.inrupt.net/profile/card#me"])
})

const App = () => (
  <ApolloProvider client={client}>
    <div>
      <h2>My first Apollo app</h2>
    </div>
  </ApolloProvider>
);

See travis/solid-apollo-example for a working example.

Installation

$ npm install solid-apollo

License

Hippocratic License

About

Utilities for using ApolloClient to interact with Solid Pods

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published