dotansimha / dotansimha/graphql-code-generator-community
[typescript-rtk-query] allow for automatic transform response in codegen
Open
- Dominant language
- TypeScript
- Stars
- 137
- Forks
- 195
- Avg merge
- 6h 20m
- Merged PRs (30d)
- 16
Description
**Describe the solution you'd like**
I would like the codegen to automatically generate transformResponse function when api endpoint is generated e.g.
```
Feed: build.query({
query: (variables) => ({ document: FeedDocument, variables })
transformResponse: (response: FeedQuery) => response
}),
```
The reason is that I end up manually adding this every time because the api will send something like `data.applications` instead of `applications`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.