github graffle-js/graffle v1.3.0

latest releases: next, 8.0.0-next.133, 8.0.0-next.132...
7 years ago
  • Allow fetch-compatible options in constructor #9

Example:

import { GraphQLClient } from 'graphql-request'

const client = new GraphQLClient('my-endpoint', {
 credentials: 'include',
 mode: 'cors'
})

const query = `{
  Movie(title: "Inception") {
    releaseDate
    actors {
      name
    }
  }
}`

client.request(query).then(data => console.log(data)) 

Don't miss a new graffle release

NewReleases is sending notifications on new releases.