Skip to content

Releases: graffle-js/graffle

v1.5.0

23 Feb 14:50
Compare
Choose a tag to compare

1.5.0 (2018-02-23)

Features

1.4.0

04 Oct 16:39
Compare
Choose a tag to compare

Replaced isomorphic-fetch with cross-fetch. Thanks for the PR #30 @lquixada!

v1.3.6

11 Sep 12:37
Compare
Choose a tag to compare
  • Text errors are now wrapped in an error object to fix the issue described in #23

v1.3.4

10 Aug 11:22
Compare
Choose a tag to compare
  • Fixed error handling for Safari
  • Upgraded Typescript

v1.3.0

19 Jul 15:27
Compare
Choose a tag to compare
  • 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))