StrawberrySchemaDirective

Constructor:

Signature:

def __init__(
self,
python_name: str,
graphql_name: str | None,
locations: List[Location],
fields: List[StrawberryField],
description: str | None = None,
repeatable: bool = False,
print_definition: bool = True,
origin: Type | None = None,
) -> None:
...

Parameters:

  1. python_name:

    Type
    str
  2. graphql_name:

    Type
    str | None
  3. locations:

    Type
    List[Location]
  4. fields:

    Type
    List[StrawberryField]
  5. description:

    Type
    str | None
    Default
    None
  6. repeatable:

    Type
    bool
    Default
    False
  7. print_definition:

    Type
    bool
    Default
    True
  8. origin:

    Type
    Type | None
    Default
    None

Attributes:

  1. python_name:

    Type
    str
  2. graphql_name:

    Type
    str | None
  3. locations:

    Type
    List[Location]
  4. fields:

    Type
    List[StrawberryField]
  5. description:

    Type
    str | None
  6. repeatable:

    Type
    bool
  7. print_definition:

    Type
    bool
  8. origin:

    Type
    Type | None