GraphQLCoreConverter
Constructor:
Signature:
config: StrawberryConfig,
scalar_registry: Dict[object, ScalarWrapper | ScalarDefinition],
get_fields: Callable[[StrawberryObjectDefinition], List[StrawberryField]],
Parameters:
-
-
- Type
-
Dict[object, ScalarWrapper | ScalarDefinition]
-
- Type
-
Callable[[StrawberryObjectDefinition], List[StrawberryField]]
Methods:
-
from_argument
Signature:
def from_argument(self, argument: StrawberryArgument) -> GraphQLArgument:
-
from_enum
Signature:
def from_enum(self, enum: EnumDefinition) -> CustomGraphQLEnumType:
-
from_enum_value
Signature:
def from_enum_value(self, enum_value: EnumValue) -> GraphQLEnumValue:
-
from_directive
Signature:
def from_directive(self, directive: StrawberryDirective) -> GraphQLDirective:
-
from_schema_directive
Signature:
def from_schema_directive(self, cls: Type) -> GraphQLDirective:
-
from_field
Signature:
type_definition: StrawberryObjectDefinition | None = None,
Parameters:
-
-
- Type
-
StrawberryObjectDefinition | None
- Default
-
None
-
from_input_field
Signature:
type_definition: StrawberryObjectDefinition | None = None,
Parameters:
-
-
- Type
-
StrawberryObjectDefinition | None
- Default
-
None
-
get_graphql_fields
Signature:
def get_graphql_fields(self, type_definition: StrawberryObjectDefinition) -> Dict[str, GraphQLField]:
Parameters:
-
- Type
-
StrawberryObjectDefinition
-
get_graphql_input_fields
Signature:
def get_graphql_input_fields(self, type_definition: StrawberryObjectDefinition) -> Dict[str, GraphQLInputField]:
Parameters:
-
- Type
-
StrawberryObjectDefinition
-
from_input_object
Signature:
def from_input_object(self, object_type: type) -> GraphQLInputObjectType:
-
from_interface
Signature:
def from_interface(self, interface: StrawberryObjectDefinition) -> GraphQLInterfaceType:
Parameters:
-
- Type
-
StrawberryObjectDefinition
-
from_list
Signature:
def from_list(self, type_: StrawberryList) -> GraphQLList:
-
from_object
Signature:
def from_object(self, object_type: StrawberryObjectDefinition) -> GraphQLObjectType:
Parameters:
-
- Type
-
StrawberryObjectDefinition
-
from_resolver
Signature:
def from_resolver(self, field: StrawberryField) -> Callable:
-
from_scalar
Signature:
def from_scalar(self, scalar: Type) -> GraphQLScalarType:
-
from_maybe_optional
Signature:
def from_maybe_optional(self, type_: StrawberryType | type) -> GraphQLNullableType | GraphQLNonNull:
Parameters:
-
- Type
-
StrawberryType | type
-
from_type
Signature:
def from_type(self, type_: StrawberryType | type) -> GraphQLNullableType:
Parameters:
-
- Type
-
StrawberryType | type
-
from_union
Signature:
def from_union(self, union: StrawberryUnion) -> GraphQLUnionType:
-
validate_same_type_definition
Signature:
def validate_same_type_definition(
type_definition: StrawberryType,
cached_type: ConcreteType,
Attributes:
-
-
- Type
-
Dict[str, ConcreteType]
-
-
-