TypeCreatorExtension
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
bool
isInternalGraphQLType()
Returns true if the type parser creates an internal type e.g. String
Details
TypeParserInterface
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