strawberry icon indicating copy to clipboard operation
strawberry copied to clipboard

Generic classes in scaler overrides

Open HopeBaron opened this issue 1 year ago • 1 comments

Describe the Bug

if you register a generic class with different generic parameter as scaler override strawberry will allow registering only one.

sample code can be found here: https://play.strawberry.rocks/?gist=061b5d7c79310d6ac8c23b3b35c93cff

TypeError: PropertyType fields cannot be resolved. Scalar `Link` has already been registered

System Information

  • Operating system: Manjaro Linux
  • Strawberry version (if applicable): 0.113.0

Additional Context

N/A

HopeBaron avatar Jul 10 '22 12:07 HopeBaron

this happens because the graphql name is the same for the two scalar types. see https://discord.com/channels/689806334337482765/995751112554594485/996083557925650563

thejaminator avatar Jul 13 '22 13:07 thejaminator