Replies: 4 comments
-
You might want to look at https://github.com/prisma-labs/graphql-request/#cancellation |
Beta Was this translation helpful? Give feedback.
-
Take a look at #103 |
Beta Was this translation helpful? Give feedback.
-
I would be also interested in a smooth way to set it by configuration. |
Beta Was this translation helpful? Give feedback.
-
If you are running node this does the trick: return new GraphQLClient(someUrl, {
signal: AbortSignal.timeout(API_CALL_TIMEOUT_MS),
}); See AbortSignal-Docs |
Beta Was this translation helpful? Give feedback.
-
What is the default timeout for a given request and where can I configure that?
Beta Was this translation helpful? Give feedback.
All reactions