SilverStripe\GraphQL\Pagination\SortInputTypeCreator
Type creator for an enum value for a list of possible sortable fields
Synopsis
class SortInputTypeCreator
extends TypeCreator
{
- // members
- protected InputObjectType $type;
- protected $inputName;
- protected array $sortableFields = ;
- protected boolean $inputObject = true;
- // Inherited members from TypeCreator
- protected Manager $manager;
- protected bool $inputObject;
- // methods
- public void __construct()
- public $this setSortableFields()
- public void toType()
- public void getAttributes()
- public void attributes()
- public void fields()
- // 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
Extends
Members
protected
- $inputName — string
- $inputObject
- $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
- $sortableFields — array
- $type — GraphQL\Type\Definition\InputObjectType
Methods
public
- __construct() — Build a sort input creator with a given name prefix.
- attributes()
- fields()
- getAttributes()
- setSortableFields() — Specify the list of sortable fields
- toType()
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.