Open MaehMaeh opened 1 year ago
Hey @MaehMaeh ,
This is actually the same issue as the one described here: https://github.com/strawberry-graphql/strawberry/issues/2893
We still need to find a better way of handling unions for connections when using an iterable resolver, but in the meantime you can try to use the workaround I suggested in that issue
Is there a possibility to do a pagination with union types?
My implementation currently looks like this (without Unions):
This makes the query look like this:
But my wish would be that the query should be with Unions. So like this:
If I make the query return a union type, like this:
I get the error message
'StrawberryUnion' object has no attribute '_type_definition'
I hope I have been able to formulate my request in a reasonably understandable way. Is there currently such a possibility?
Upvote & Fund