Releases: graffle-js/graffle
Releases · graffle-js/graffle
v1.5.0
1.4.0
Replaced isomorphic-fetch
with cross-fetch
. Thanks for the PR #30 @lquixada!
v1.3.6
v1.3.4
- Fixed error handling for Safari
- Upgraded Typescript
v1.3.0
- 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))