SilverStripe\GraphQL\Manager::addType
Register a new type
Signature
public function addType(Type
$type,
[string
$name = ''] )
Parameters
$type
— GraphQL\Type\Definition\Type
$name
— string- An optional identifier for this type (defaults to 'name'
attribute in type definition). Needs to be unique in schema.