strawberry.exceptions.InvalidUnionTypeError

The union is constructed with an invalid type.

Constructor:

Signature:

def __init__(
self,
union_name: str,
invalid_type: object,
union_definition: StrawberryUnion | None = None,
) -> None:
...

Parameters:

  1. union_name:

    Type
    str
  2. invalid_type:

    Type
    object
  3. union_definition:

    Type
    StrawberryUnion | None
    Default
    None

Attributes:

  1. invalid_type:

    Type
    object
  2. union_name:

  3. union_definition:

  4. frame:

  5. message:

  6. rich_message:

  7. suggestion:

  8. annotation_message:

  9. exception_source:

    Type
    ExceptionSource | None