dotansimha / dotansimha/graphql-code-generator
docs: addTypenameDocumentTransform does not exist
- Dominant language
- TypeScript
- Stars
- 11.3k
- Forks
- 1.4k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 23
Description
### Which packages are impacted by your issue?
@graphql-codegen/client-preset
### Describe the bug
The code example in the following document is incorrect.
https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#normalized-caches-urql-and-apollo-client
`addTypenameDocumentTransform` does not exist.
`addTypenameSelectionDocumentTransform` is correct
### Your Example Website or App
https://github.com/dotansimha/graphql-code-generator
### Steps to Reproduce the Bug or Issue
Check the following pages.
https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#normalized-caches-urql-and-apollo-client
### Expected behavior
Running the example code will result in an error.
### Screenshots or Videos
_No response_
### Platform
- OS: [e.g. macOS, Windows, Linux]
- NodeJS: [e.g. 18.5.0]
- `graphql` version: [e.g. 16.3.0]
- `@graphql-codegen/*` version(s): [e.g. 2.6.2]
### Codegen Config File
_No response_
### Additional context
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.