orcprogramming:meteor-apollo2

v0.0.1Published 7 years ago

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

Patch for https://github.com/apollographql/meteor-integration until the official version is released.

Note: 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 & an Apollo server quickly:

Client

1import { createApolloClient } from 'meteor/orcprogramming:meteor-apollo2';
2
3const client = createApolloClient({});

Server

1import { createApolloServer } from 'meteor/orcprogramming:meteor-apollo2';
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

Example usage

See the following project for example usage: https://github.com/fede-rodes/meteor-apollo-starter-kit

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