SilverStripe\GraphQL\Pagination\PageInfoTypeCreator
Supports offset based pagination within GraphQL.
Synopsis
class PageInfoTypeCreator
extends TypeCreator
{
- // members
- protected ObjectType $type;
- // Inherited members from TypeCreator
- protected Manager $manager;
- protected bool $inputObject;
- // methods
- 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
- $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
- $type
—
GraphQL\Type\Definition\ObjectType
Cached type
Methods
public
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.