Strawberry cannot process a type of Union[strawberry_interface, strawberry_type]
Macos, latest strawberry (0.111.2 at the moment)
Sample code:
from typing import Union
import strawberry
@strawberry.interface
class Node:
id: strawberry.ID
@strawberry.type
class Error:
message: str
@strawberry.type
class Query:
users: Union[Node, Error]
schema = strawberry.Schema(query=Query)
Fails with
TypeError: Query fields cannot be resolved.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too