apollo-link-pouch
Provides an Apollo Link to use GraphQL with a local PouchDB.
Inspired by apollo-link-firebase.
This is not ready for production! Use at your own risk. Feel free to make pull requests for any suggestions - I am still rather inexperienced with Apollo and could use the help.
Demos
Notes app
Installation
npm install apollo-link-pouchdb
Getting Started
import PouchDB from 'pouchdb'
import { createPouchLink } from 'apollo-link-pouch'
const client = new ApolloClient({
link: createPouchLink({
database: new PouchDB('my-database')
}),
cache: new InMemoryCache()
})
Roadmap
PouchDB API
Features