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

0.0.2 • Public • Published

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

Package Sidebar

Install

npm i solid-apollo

Weekly Downloads

1

Version

0.0.2

License

Hippocratic License

Unpacked Size

264 kB

Total Files

11

Last publish

Collaborators

  • tvachon