graphql-request
Advanced tools
Comparing version 1.3.2 to 1.3.3
{ | ||
"name": "graphql-request", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"main": "dist/src/index.js", | ||
@@ -33,9 +33,9 @@ "typings": "./dist/src/index.d.ts", | ||
"devDependencies": { | ||
"@types/fetch-mock": "^5.8.2", | ||
"@types/node": "^7.0.18", | ||
"ava": "^0.19.1", | ||
"fetch-mock": "^5.11.0", | ||
"@types/fetch-mock": "^5.8.3", | ||
"@types/node": "^8.0.16", | ||
"ava": "^0.21.0", | ||
"fetch-mock": "^5.12.1", | ||
"tslint": "^5.5.0", | ||
"tslint-config-standard": "^6.0.1", | ||
"typescript": "^2.3.2" | ||
"typescript": "^2.4.2" | ||
}, | ||
@@ -42,0 +42,0 @@ "dependencies": { |
@@ -75,2 +75,24 @@ # graphql-request [![Build Status](https://travis-ci.org/graphcool/graphql-request.svg?branch=master)](https://travis-ci.org/graphcool/graphql-request) [![npm version](https://badge.fury.io/js/graphql-request.svg)](https://badge.fury.io/js/graphql-request) | ||
### Passing more options to fetch | ||
```js | ||
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)) | ||
``` | ||
### Using variables | ||
@@ -77,0 +99,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27528
176