SilverStripe\GraphQL\DataObjectInterfaceTypeCreator
Base interface for any {@link DataObject} passed back as a node.
Synopsis
class DataObjectInterfaceTypeCreator
extends InterfaceTypeCreator
{
- // Inherited members from TypeCreator
- protected Manager $manager;
- protected bool $inputObject;
- // methods
- public void attributes()
- public void fields()
- public void resolveType()
- // Inherited methods from InterfaceTypeCreator
- protected callable getTypeResolver()
- public array getAttributes()
- public InterfaceType toType()
- // Inherited methods from TypeCreator
- public void __construct()
- public array attributes()
- public array fields()
- public array|callable interfaces()
- public array getFields()
- public bool isInputObject()
- public Type toType()
- public array toArray()
- public array getAttributes()
- protected callable|null getFieldResolver()
Hierarchy
Members
protected
- $inputObject
—
SilverStripe\GraphQL\bool
Determines if the object should be cast as an {@link InputObjectType} Otherwise will be cast as a normal {@link ObjectType} - $manager — SilverStripe\GraphQL\Manager
Methods
public
Inherited from SilverStripe\GraphQL\InterfaceTypeCreator
protected
- getTypeResolver() — Returns a callback to the type resolver for this interface
public
- getAttributes() — Get the attributes from the container.
- toType() — Generates the interface type from its configuration
Inherited from SilverStripe\GraphQL\TypeCreator
protected
- getFieldResolver() — Locate potential callback for resolving this field at runtime.
public
- attributes() — Returns any fixed attributes for this type. E.g. 'name' or 'description'
- fields() — Returns the internal field structures, without field resolution.
- getAttributes() — Gets the list of all computed attributes for this type.
- getFields() — Returns field structure with field resolvers added.
- interfaces() — Returns the list of interfaces (or function to evaluate this list) which this type implements.
- isInputObject() — True if this is an input object, which accepts new field values.
- toArray() — Convert this silverstripe graphql type into an array format accepted by the type constructor.
- toType() — Build the constructed type backing this object.