Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] support cancle for per request #18

Open
Carrotzpc opened this issue Mar 29, 2024 · 1 comment
Open

[Request] support cancle for per request #18

Carrotzpc opened this issue Mar 29, 2024 · 1 comment
Labels

Comments

@Carrotzpc
Copy link
Member

Carrotzpc commented Mar 29, 2024

🥰 需求描述 | Feature Description

ref: https://github.com/jasonkuhrt/graphql-request/tree/5.2.0?tab=readme-ov-file#cancellation

🧐 解决方案 | Proposed Solution

const abortController = new AbortController()

const client = new GraphQLClient(endpoint)
client.request({ document: query, signal: abortController.signal })

abortController.abort()

📝 补充信息 | Additional Information

No response

@yunti-bot
Copy link
Collaborator

👀 @Carrotzpc
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants