-
-
Notifications
You must be signed in to change notification settings - Fork 531
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
Fields on generic interfaces cannot be generic #3602
Comments
Just had a quick look at this and it might not be that easy to do, at least not in a couple of hours :D but we should support this use case 😊 |
thanks for looking at it! i agree, an interface generic seems like a really natural/perfect use case for interfaces. so much so that i figured this was a bug rather than a missing feature haha, given that it works for |
Describe the Bug
Generics that have been decorated with
@strawberry.interface
are unable to define fields with generic return types. However, the same field seems to work fine if the generic is decorated as atype
instead.The following code:
produces the error:
If you replace
@strawberry.interface
with@strawberry.type
, the error goes away and the query returns what I would expect:System Information
0.237.3
Upvote & Fund
The text was updated successfully, but these errors were encountered: