class TypeCreatorExtension extends DataExtension implements ManagerMutatorInterface (View source)

Adds functionality to associate an object with a given GraphQL type, either internal (e.g. String) or complex (e.g. object)

Methods

createTypeParser()

Creates the type parser, using the graphql_type value

Type
getGraphQLType(Manager $manager = null)

Creates the type using appropriate parser

bool
isInternalGraphQLType()

Returns true if the type parser creates an internal type e.g. String

addToManager(Manager $manager)

Adds this object's GraphQL type to the Manager

Details

TypeParserInterface createTypeParser()

Creates the type parser, using the graphql_type value

Return Value

TypeParserInterface

Exceptions

Exception

Type getGraphQLType(Manager $manager = null)

Creates the type using appropriate parser

Parameters

Manager $manager

Return Value

Type

bool isInternalGraphQLType()

Returns true if the type parser creates an internal type e.g. String

Return Value

bool

addToManager(Manager $manager)

Adds this object's GraphQL type to the Manager

Parameters

Manager $manager