StrawberryDirective

Constructor:

Signature:

def __init__(
self,
python_name: str,
graphql_name: str | None,
resolver: StrawberryDirectiveResolver[T],
locations: List[DirectiveLocation],
description: str | None = None,
) -> None:
...

Parameters:

  1. python_name:

    Type
    str
  2. graphql_name:

    Type
    str | None
  3. resolver:

    Type
    StrawberryDirectiveResolver[T]
  4. locations:

    Type
    List[DirectiveLocation]
  5. description:

    Type
    str | None
    Default
    None

Attributes:

  1. python_name:

    Type
    str
  2. graphql_name:

    Type
    str | None
  3. resolver:

    Type
    StrawberryDirectiveResolver[T]
  4. locations:

    Type
    List[DirectiveLocation]
  5. description:

    Type
    str | None
  6. arguments:

    Type
    List[StrawberryArgument]