NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #3117 most downloaded on npm
Minimal GraphQL client supporting Node and browsers for scripts or simple apps.
Last release 9 months ago
12 Dec 2025
Ships unpredictably
gaps range from 8 days to 7 months
Most releases are documented
notes for 42 of 58 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
214 releases · first in 2017
Types module has moved from dist/src/types.js to dist/types.js. If you were importing from the former before you'll need to update to be the later now
Types module has moved from dist/src/types.js to dist/types.js. If you were importing from the former before you'll need to update to be the later now.
e757927 accept DocumentNode input (#183)
graphql-request now requires graphql version 14.x or 15.x as a peer dependency.
graphql-request uses a TypeScript type from the graphql package such that if you are using TypeScript to build your project and you are using graphql-request but don't have graphql installed TypeScript build will fail. Details here. If you are a JS user then you do not technically need to install graphql. However if you use an IDE that picks up TS types even for JS (like VSCode) then its still in your interest to install graphql so that you can benefit from enhanced type safety during development.
One column per quarter.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
This release was accidental. The breaking change will actually be undone in 2.1. However since this project was dormant for a long time, the 2.x versi…
This release was accidental. The breaking change will actually be undone in 2.1. However since this project was dormant for a long time, the 2.x version is still a safeguard against possible regressions/instability that new development will cause.
Options type (#155) (b69791c)cross-fetch if needed now.deps: update dependency cross-fetch to v2.2.2
add esnext.asynciterable to tsconfig.json
# 1.8.0 (2018-08-01) ### Features * add bundle size check to CI
build by installing peer dep in ci
Add response status code to rawRequest's result
Add the headers object to the rawRequest's result
deps: update dependency cross-fetch to v2.0.0
# 1.5.0 (2018-02-23) ### Features * Add raw request method
Nothing published for this version
Replaced isomorphic-fetch with `cross-fetch`. Thanks for the PR #30 @lquixada!
Replaced isomorphic-fetch with cross-fetch. Thanks for the PR #30 @lquixada!
Text errors are now wrapped in an error object to fix the issue described in #23
error object to fix the issue described in #23Nothing published for this version
Nothing published for this version
Fixed error handling for Safari
Nothing published for this version
Nothing published for this version
Nothing published for this version
Allow fetch-compatible options in constructor #9
fetch-compatible options in constructor #9Example:
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))
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →