StrawberryResolver

Constructor:

Signature:

def __init__(
self,
func: Callable[..., T] | staticmethod | classmethod,
description: str | None = None,
type_override: StrawberryType | type | None = None,
) -> None:
...

Parameters:

  1. func:

    Type
    Callable[..., T] | staticmethod | classmethod
  2. description:

    Type
    str | None
    Default
    None
  3. type_override:

    Type
    StrawberryType | type | None
    Default
    None

Methods:

Attributes:

  1. RESERVED_PARAMSPEC:

    Type
    Tuple[ReservedParameterSpecification, ...]
  2. wrapped_func:

  3. signature:

    Type
    inspect.Signature
  4. strawberry_annotations:

    Type
    Dict[inspect.Parameter, StrawberryAnnotation | None]
  5. reserved_parameters:

    Mapping of reserved parameter specification to parameter.

    Type
    Dict[ReservedParameterSpecification, inspect.Parameter | None]
  6. arguments:

    Resolver arguments exposed in the GraphQL Schema.

    Type
    List[StrawberryArgument]
  7. info_parameter:

    Type
    inspect.Parameter | None
  8. root_parameter:

    Type
    inspect.Parameter | None
  9. self_parameter:

    Type
    inspect.Parameter | None
  10. parent_parameter:

    Type
    inspect.Parameter | None
  11. name:

    Type
    str
  12. annotations:

    Annotations for the resolver.

    Does not include special args defined in RESERVED_PARAMSPEC (e.g. self, root, info)

    Type
    Dict[str, object]
  13. type_annotation:

    Type
    StrawberryAnnotation | None
  14. type:

    Type
    StrawberryType | type | None
  15. is_graphql_generic:

    Type
    bool
  16. is_async:

    Type
    bool