dotansimha / dotansimha/graphql-code-generator-community
[typescript-graphql-request] Allow passing Abortsignal to sdk methods
- Dominant language
- TypeScript
- Stars
- 137
- Forks
- 195
- Avg merge
- 6h 20m
- Merged PRs (30d)
- 16
Description
**Is your feature request related to a problem? Please describe.**
Currently, it's not possible to pass an `Abortsignal` to the sdk methods generated by the `typescript-graphql-request` plugin.
**Describe the solution you'd like**
Replacing the positional argument call with single argument, described in the new [graphql-request usage](https://github.com/prisma-labs/graphql-request#usage)
**Describe alternatives you've considered**
`Graphql-request` currently does not allow passing an `Abortsignal` any other way.
**Additional context**
Although there is a react-query graphql codegen plugin we started using the `graphql-request` plugin and create custom hooks based on react-query on our own to have more control over the custom hooks. We now want to leverage the signal passed to each fetcher function of `react-query` in `graphql-request`.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.