apollo

v2.0.0Published 6 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

This package supports Apollo Client 2.x. To use Apollo Client 1.x, check out on the version 1.0.0

A great alternative to this package is ddp-apollo

We are actively looking for a new maintainer: https://github.com/apollographql/meteor-integration/issues/109

Create an Apollo client and server quickly:

Client

1import { createApolloClient } from 'meteor/apollo';
2
3const client = createApolloClient();

Server

1import { createApolloServer } from 'meteor/apollo';
2
3const schema = /* your schema instance */
4
5createApolloServer({ schema });
meteor add apollo
yarn add apollo-client apollo-link apollo-link-http apollo-cache-inmemory apollo-server-express express graphql graphql-tools body-parser

Read the docs

Package dev

Tests

git clone https://github.com/apollostack/meteor-integration.git
cd meteor-integration
npm install
npm run test
open http://localhost:3000

Ignore the npm peer requirements warning that appears on client and server consoles.

Credits

Contributors