StrawberryType

The base class for all types that Strawberry uses.

Every type that is decorated by strawberry should have a dunder __strawberry_definition__ with an instance of a StrawberryType that contains the parsed information that strawberry created.

NOTE: ATM this is only true for @type @interface @input follow https://github.com/strawberry-graphql/strawberry/issues/2841 to see progress.

Methods:

Attributes:

  1. type_params:

    Type
    List[TypeVar]
  2. is_one_of:

    Type
    bool
  3. is_graphql_generic:

    Type
    bool