StrawberryUnion

Constructor:

Signature:

def __init__(
self,
name: str | None = None,
type_annotations: Tuple[StrawberryAnnotation, ...] = tuple(),
description: str | None = None,
directives: Iterable[object] = (),
) -> None:
...

Parameters:

  1. name:

    Type
    str | None
    Default
    None
  2. type_annotations:

    Type
    Tuple[StrawberryAnnotation, ...]
    Default
    tuple()
  3. description:

    Type
    str | None
    Default
    None
  4. directives:

    Type
    Iterable[object]
    Default
    ()

Methods:

Attributes:

  1. graphql_name:

  2. type_annotations:

  3. description:

  4. directives:

  5. types:

    Type
    Tuple[StrawberryType, ...]
  6. type_params:

    Type
    List[TypeVar]
  7. is_graphql_generic:

    Type
    bool