Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic classes in scaler overrides #2003

Open
HopeBaron opened this issue Jul 10, 2022 · 1 comment
Open

Generic classes in scaler overrides #2003

HopeBaron opened this issue Jul 10, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@HopeBaron
Copy link

HopeBaron commented Jul 10, 2022

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

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@HopeBaron HopeBaron added the bug Something isn't working label Jul 10, 2022
@thejaminator thejaminator self-assigned this Jul 13, 2022
@thejaminator
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants