Skip to content

iDanielLaw/apollo-client-browser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

apollo-client-browser

npm npm

A browser-ready version of apollo-client: demo

<script src="https://unpkg.com/apollo-client-browser@1.7.0"></script>

<script>
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
    }
  }
}
`
</script>

See apollo-client for more info.

About

A browser-ready version of apollo-client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 60.0%
  • JavaScript 40.0%