NameConverter
Constructor:
Signature:
def __init__(self, auto_camel_case: bool = True) -> None:
Methods:
-
apply_naming_config
Signature:
def apply_naming_config(self, name: str) -> str:
-
from_type
Signature:
def from_type(self, type_: StrawberryType | StrawberryDirective) -> str:
Parameters:
-
- Type
-
StrawberryType | StrawberryDirective
-
from_argument
Signature:
def from_argument(self, argument: StrawberryArgument) -> str:
-
from_object
Signature:
def from_object(self, object_type: StrawberryObjectDefinition) -> str:
Parameters:
-
- Type
-
StrawberryObjectDefinition
-
from_input_object
Signature:
def from_input_object(self, input_type: StrawberryObjectDefinition) -> str:
Parameters:
-
- Type
-
StrawberryObjectDefinition
-
from_interface
Signature:
def from_interface(self, interface: StrawberryObjectDefinition) -> str:
Parameters:
-
- Type
-
StrawberryObjectDefinition
-
from_enum
Signature:
def from_enum(self, enum: EnumDefinition) -> str:
-
from_enum_value
Signature:
def from_enum_value(self, enum: EnumDefinition, enum_value: EnumValue) -> str:
-
from_directive
Signature:
def from_directive(self, directive: StrawberryDirective | StrawberrySchemaDirective) -> str:
Parameters:
-
- Type
-
StrawberryDirective | StrawberrySchemaDirective
-
from_scalar
Signature:
def from_scalar(self, scalar: ScalarDefinition) -> str:
-
from_field
Signature:
def from_field(self, field: StrawberryField) -> str:
-
from_union
Signature:
def from_union(self, union: StrawberryUnion) -> str:
-
from_generic
Signature:
generic_type: StrawberryObjectDefinition,
types: List[StrawberryType | type],
Parameters:
-
- Type
-
StrawberryObjectDefinition
-
- Type
-
List[StrawberryType | type]
-
get_from_type
Signature:
def get_from_type(self, type_: StrawberryType | type) -> str:
Parameters:
-
- Type
-
StrawberryType | type
-
get_graphql_name
Signature:
def get_graphql_name(self, obj: HasGraphQLName) -> str:
Attributes:
-