field

Signature:

def field(
resolver: _RESOLVER_TYPE[Any] | None = None,
name: str | None = None,
is_subscription: bool = False,
description: str | None = None,
authenticated: bool = False,
external: bool = False,
inaccessible: bool = False,
policy: List[List[str]] | None = None,
provides: List[str] | None = None,
override: Override | str | None = None,
requires: List[str] | None = None,
requires_scopes: List[List[str]] | None = None,
tags: Iterable[str] | None = (),
shareable: bool = False,
permission_classes: List[Type[BasePermission]] | None = None,
deprecation_reason: str | None = None,
default: Any = dataclasses.MISSING,
default_factory: Callable[..., object] | object = dataclasses.MISSING,
directives: Sequence[object] = (),
extensions: List[FieldExtension] | None = None,
graphql_type: Any | None = None,
init: Literal[True, False, None] = None,
) -> Any:
...

Parameters:

  1. resolver:

    Type
    _RESOLVER_TYPE[Any] | None
    Default
    None
  2. name:

    Type
    str | None
    Default
    None
  3. is_subscription:

    Type
    bool
    Default
    False
  4. description:

    Type
    str | None
    Default
    None
  5. authenticated:

    Type
    bool
    Default
    False
  6. external:

    Type
    bool
    Default
    False
  7. inaccessible:

    Type
    bool
    Default
    False
  8. policy:

    Type
    List[List[str]] | None
    Default
    None
  9. provides:

    Type
    List[str] | None
    Default
    None
  10. override:

    Type
    Override | str | None
    Default
    None
  11. requires:

    Type
    List[str] | None
    Default
    None
  12. requires_scopes:

    Type
    List[List[str]] | None
    Default
    None
  13. tags:

    Type
    Iterable[str] | None
    Default
    ()
  14. shareable:

    Type
    bool
    Default
    False
  15. permission_classes:

    Type
    List[Type[BasePermission]] | None
    Default
    None
  16. deprecation_reason:

    Type
    str | None
    Default
    None
  17. default:

    Type
    Any
    Default
    dataclasses.MISSING
  18. default_factory:

    Type
    Callable[..., object] | object
    Default
    dataclasses.MISSING
  19. directives:

    Type
    Sequence[object]
    Default
    ()
  20. extensions:

    Type
    List[FieldExtension] | None
    Default
    None
  21. graphql_type:

    Type
    Any | None
    Default
    None
  22. init:

    Type
    Literal[True, False, None]
    Default
    None