SilverStripe\GraphQL\Scaffolding\Extensions\TypeCreatorExtension
Adds functionality to associate an object with a given GraphQL type, either internal (e.g. String) or complex (e.g. object)
Synopsis
class TypeCreatorExtension
extends DataExtension
implements
ManagerMutatorInterface
{
- // methods
- public TypeParserInterface createTypeParser()
- public Type getGraphQLType()
- public bool isInternalGraphQLType()
- public void addToManager()
- protected string configType()
- protected bool isInternal()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Implements
Methods
protected
- configType() — Gets the graphql type from config
- isInternal() — Returns true if the named of the type is an internal one, e.g. "String"
public
- addToManager() — Adds this object's GraphQL type to the Manager
- createTypeParser() — Creates the type parser, using the `graphql_type` value
- getGraphQLType() — Creates the type using appropriate parser
- isInternalGraphQLType() — Returns true if the type parser creates an internal type e.g. String