-
-
Notifications
You must be signed in to change notification settings - Fork 616
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Strawberry cannot process a type of Union[strawberry_interface, strawberry_type]
System Information
Macos, latest strawberry (0.111.2 at the moment)
Additional Context
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working