You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Using a custom `fetch` method](#using-a-custom-fetch-method)
25
-
-[Receiving a raw response](#receiving-a-raw-response)
26
-
-[File Upload](#file-upload)
27
-
-[Browser](#browser)
28
-
-[Node](#node)
29
-
-[Deno](#deno)
30
-
-[Batching](#batching)
31
-
-[FAQ](#faq)
32
-
-[Why do I have to install `graphql`?](#why-do-i-have-to-install-graphql)
33
-
-[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)
34
-
-[What's the difference between `graphql-request`, Apollo and Relay?](#whats-the-difference-between-graphql-request-apollo-and-relay)
-[Using a custom `fetch` method](#using-a-custom-fetch-method)
27
+
-[Receiving a raw response](#receiving-a-raw-response)
28
+
-[File Upload](#file-upload)
29
+
-[Browser](#browser)
30
+
-[Node](#node)
31
+
-[Deno](#deno)
32
+
-[Batching](#batching)
33
+
-[Cancellation](#cancellation)
34
+
-[FAQ](#faq)
35
+
-[Why do I have to install `graphql`?](#why-do-i-have-to-install-graphql)
36
+
-[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)
37
+
-[What's the difference between `graphql-request`, Apollo and Relay?](#whats-the-difference-between-graphql-request-apollo-and-relay)
35
38
36
39
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
37
40
@@ -549,19 +552,50 @@ try {
549
552
denorun--allow-netexamples/batching-requests.ts
550
553
```
551
554
555
+
### Cancellation
556
+
557
+
It is possible to cancel a request using an `AbortController` signal.
558
+
559
+
You can define the `signal` in the `GraphQLClient` constructor:
0 commit comments