Skip to content

Commit 29d09e5

Browse files
committed
chore(docs): mention esm
1 parent 7abfa6d commit 29d09e5

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

README.md

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -7,41 +7,40 @@ Minimal GraphQL client supporting Node and browsers for scripts or simple apps
77
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
88
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
99

10-
- [graphql-request](#graphql-request)
11-
- [Features](#features)
12-
- [Install](#install)
13-
- [Quickstart](#quickstart)
14-
- [Usage](#usage)
15-
- [Node Version Support](#node-version-support)
16-
- [Community](#community)
17-
- [GraphQL Code Generator's GraphQL-Request TypeScript Plugin](#graphql-code-generators-graphql-request-typescript-plugin)
18-
- [Examples](#examples)
19-
- [Authentication via HTTP header](#authentication-via-http-header)
20-
- [Incrementally setting headers](#incrementally-setting-headers)
21-
- [Set endpoint](#set-endpoint)
22-
- [passing-headers-in-each-request](#passing-headers-in-each-request)
23-
- [Passing dynamic headers to the client](#passing-dynamic-headers-to-the-client)
24-
- [Passing more options to `fetch`](#passing-more-options-to-fetch)
25-
- [Custom JSON serializer](#custom-json-serializer)
26-
- [Using GraphQL Document variables](#using-graphql-document-variables)
27-
- [Making a GET request](#making-a-get-request)
28-
- [GraphQL Mutations](#graphql-mutations)
29-
- [Error handling](#error-handling)
30-
- [Using `require` instead of `import`](#using-require-instead-of-import)
31-
- [Cookie support for `node`](#cookie-support-for-node)
32-
- [Using a custom `fetch` method](#using-a-custom-fetch-method)
33-
- [Receiving a raw response](#receiving-a-raw-response)
34-
- [File Upload](#file-upload)
35-
- [Browser](#browser)
36-
- [Node](#node)
37-
- [Batching](#batching)
38-
- [Cancellation](#cancellation)
39-
- [Middleware](#middleware)
40-
- [ErrorPolicy](#errorpolicy)
41-
- [None (default)](#none-default)
42-
- [Ignore](#ignore)
43-
- [All](#all)
44-
- [FAQ](#faq)
10+
- [Features](#features)
11+
- [Install](#install)
12+
- [Quick Start](#quick-start)
13+
- [Usage](#usage)
14+
- [Node Version Support](#node-version-support)
15+
- [Community](#community)
16+
- [Get typed GraphQL Queries with GraphQL Code Generator](#get-typed-graphql-queries-with-graphql-code-generator)
17+
- [Examples](#examples)
18+
- [Authentication via HTTP header](#authentication-via-http-header)
19+
- [Incrementally setting headers](#incrementally-setting-headers)
20+
- [Set endpoint](#set-endpoint)
21+
- [passing-headers-in-each-request](#passing-headers-in-each-request)
22+
- [Passing dynamic headers to the client](#passing-dynamic-headers-to-the-client)
23+
- [Passing more options to `fetch`](#passing-more-options-to-fetch)
24+
- [Custom JSON serializer](#custom-json-serializer)
25+
- [Using GraphQL Document variables](#using-graphql-document-variables)
26+
- [Making a GET request](#making-a-get-request)
27+
- [GraphQL Mutations](#graphql-mutations)
28+
- [Error handling](#error-handling)
29+
- [Using `require` instead of `import`](#using-require-instead-of-import)
30+
- [Cookie support for `node`](#cookie-support-for-node)
31+
- [Using a custom `fetch` method](#using-a-custom-fetch-method)
32+
- [Receiving a raw response](#receiving-a-raw-response)
33+
- [File Upload](#file-upload)
34+
- [Browser](#browser)
35+
- [Node](#node)
36+
- [Batching](#batching)
37+
- [Cancellation](#cancellation)
38+
- [Middleware](#middleware)
39+
- [ErrorPolicy](#errorpolicy)
40+
- [None (default)](#none-default)
41+
- [Ignore](#ignore)
42+
- [All](#all)
43+
- [FAQ](#faq)
4544
- [Why do I have to install `graphql`?](#why-do-i-have-to-install-graphql)
4645
- [Do I need to wrap my GraphQL documents inside the `gql` template exported by `graphql-request`?](#do-i-need-to-wrap-my-graphql-documents-inside-the-gql-template-exported-by-graphql-request)
4746
- [What's the difference between `graphql-request`, Apollo and Relay?](#whats-the-difference-between-graphql-request-apollo-and-relay)
@@ -52,6 +51,7 @@ Minimal GraphQL client supporting Node and browsers for scripts or simple apps
5251

5352
- Most **simple & lightweight** GraphQL client
5453
- Promise-based API (works with `async` / `await`)
54+
- ESM native package (CJS build is included for now as well, but will eventually be removed)
5555
- TypeScript support
5656
- Isomorphic (works with Node / browsers)
5757

@@ -61,7 +61,7 @@ Minimal GraphQL client supporting Node and browsers for scripts or simple apps
6161
npm add graphql-request graphql
6262
```
6363

64-
## Quickstart
64+
## Quick Start
6565

6666
Send a GraphQL query with a single line of code. ▶️ [Try it out](https://runkit.com/593130bdfad7120012472003/593130bdfad7120012472004).
6767

0 commit comments

Comments
 (0)