Package Exports
- apollo-client
- apollo-client/errors
- apollo-client/index
- apollo-client/queries/getFromAST
- apollo-client/queries/queryTransform
- apollo-client/util/Observable
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (apollo-client) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Apollo client
The Apollo Client can easily be dropped into any JavaScript frontend where you want to use data from a GraphQL server.
It's simple to use, and very small (less than 33kb), while having a lot of useful features around caching, polling, and refetching.
Installing
npm install apollo-clientTo use this client in a web browser or mobile app, you'll need a build system capable of loading NPM packages on the client. Some common choices include Browserify, Webpack, and Meteor 1.3. Move on to the next article to see how to import and initialize the client.
Contributing
Running tests locally:
# nvm use node
npm install
npm testThis project uses TypeScript for static typing and TSLint for linting. You can get both of these built into your editor with no configuration by opening this project in Visual Studio Code, an open source IDE which is available for free on all platforms.
Useful tools
Should be moved into some kind of CONTRIBUTING.md soon...
- AST explorer: you can use this to see what the GraphQL query AST looks like for different queries
Important discussions
If you're getting booted up as a contributor, here are some discussions you should take a look at: