strawberry.exceptions.InvalidTypeForUnionMergeError

A specialized version of InvalidUnionTypeError for when trying to merge unions using the pipe operator.

Constructor:

Signature:

def __init__(self, union: StrawberryUnion, other: object) -> None:
...

Parameters:

  1. union:

    Type
    StrawberryUnion
  2. other:

    Type
    object

Attributes:

  1. invalid_type:

    Type
    Type
  2. union:

  3. other:

  4. frame:

  5. message:

  6. rich_message:

  7. suggestion:

  8. annotation_message:

  9. exception_source:

    Type
    ExceptionSource | None