ardatan / ardatan/graphql-tools
`rewireTypes` should recreate types only when necessary
- Dominant language
- TypeScript
- Stars
- 5.4k
- Forks
- 830
- Avg merge
- 10h 59m
- Merged PRs (30d)
- 45
Description
see https://github.com/graphql/graphql-js/pull/3596#issuecomment-1130551613
> `mapSchema` changes only the requested types, and then calls `rewireTypes` which unfortunately recreates ALL schema types. This ensures that all fields on all types are pointing to the new types, but it may often be overkill.
Contributor guide
Research direction
Start with the rewireTypes and mapSchema implementations, then read the linked GraphQL.js discussion for the intended conditions. Done means mapSchema rewires only the types that require it while preserving correct references from affected fields and types; verify the behavior with the relevant existing schema-transformation tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, typescript
- Domain
- api, tooling
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100