graphql-code-generator icon indicating copy to clipboard operation
graphql-code-generator copied to clipboard

Next major version feature branch

Open eddeee888 opened this issue 11 months ago • 3 comments

Related: https://github.com/dotansimha/graphql-code-generator/issues/10206

  • https://github.com/dotansimha/graphql-code-generator/pull/10216
  • https://github.com/dotansimha/graphql-code-generator/pull/10221
  • https://github.com/dotansimha/graphql-code-generator/pull/10283
  • https://github.com/dotansimha/graphql-code-generator/pull/10297
  • https://github.com/dotansimha/graphql-code-generator/pull/10287
  • [ ] Do not override NameNode
  • [ ] Drop Node 18

Breaking Changes

  • No longer generate UnwrappedObject utility type, as this was used to support the wrong previously generated type.
  • Deprecate onlyResolveTypeForInterfaces because majority of use cases cannot implement resolvers in Interfaces.
  • Deprecate generateInternalResolversIfNeeded.__resolveReference because types do not have __resolveReference if they are not Federation entities or are not resolvable. Users should not have to manually set this option. This option was put in to wait for this major version.
  • Do not generate __isTypeOf for non-implementing-types or non-union-members
  • Do not inline parent types for Federation Entities resolvers anymore. This makes handling mappers and deciding @external, @provides and @key @key scenarios easier

eddeee888 avatar Dec 16 '24 09:12 eddeee888