StrawberryArgument

Constructor:

Signature:

def __init__(
self,
python_name: str,
graphql_name: str | None,
type_annotation: StrawberryAnnotation,
is_subscription: bool = False,
description: str | None = None,
default: object = _deprecated_UNSET,
deprecation_reason: str | None = None,
directives: Iterable[object] = (),
metadata: Mapping[Any, Any] | None = None,
) -> None:
...

Parameters:

  1. python_name:

    Type
    str
  2. graphql_name:

    Type
    str | None
  3. type_annotation:

    Type
    StrawberryAnnotation
  4. is_subscription:

    Type
    bool
    Default
    False
  5. description:

    Type
    str | None
    Default
    None
  6. default:

    Type
    object
    Default
    _deprecated_UNSET
  7. deprecation_reason:

    Type
    str | None
    Default
    None
  8. directives:

    Type
    Iterable[object]
    Default
    ()
  9. metadata:

    Type
    Mapping[Any, Any] | None
    Default
    None

Attributes:

  1. python_name:

  2. graphql_name:

  3. is_subscription:

  4. description:

  5. type_annotation:

  6. deprecation_reason:

  7. directives:

  8. metadata:

  9. default:

  10. type:

    Type
    StrawberryType | type
  11. is_graphql_generic:

    Type
    bool