Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akryum/apollo-client-browser
A browser-ready version of apollo-client
https://github.com/akryum/apollo-client-browser
apollo apollographql graphql
Last synced: 23 days ago
JSON representation
A browser-ready version of apollo-client
- Host: GitHub
- URL: https://github.com/akryum/apollo-client-browser
- Owner: Akryum
- Created: 2017-06-30T17:37:39.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-26T10:12:00.000Z (over 7 years ago)
- Last Synced: 2024-10-11T12:53:41.312Z (about 1 month ago)
- Topics: apollo, apollographql, graphql
- Language: HTML
- Size: 61.5 KB
- Stars: 12
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# apollo-client-browser
[![npm](https://img.shields.io/npm/v/apollo-client-browser.svg) ![npm](https://img.shields.io/npm/dm/apollo-client-browser.svg)](https://www.npmjs.com/package/apollo-client-browser)A browser-ready version of apollo-client: [demo](https://jsfiddle.net/Akryum/oyejk2qL/)
```html
const apolloClient = new Apollo.lib.ApolloClient({
networkInterface: Apollo.lib.createNetworkInterface({
// Edit on https://launchpad.graphql.com/nnnwvmq07
uri: 'https://nnnwvmq07.lp.gql.zone/graphql',
transportBatching: true,
}),
connectToDevTools: true,
})const POSTS_QUERY = Apollo.gql`
{
posts {
id
title
author {
id
name
}
}
}
````
See [apollo-client](https://github.com/apollographql/apollo-client) for more info.