SilverStripe\GraphQL\Pagination\PaginatedQueryCreator
A helper class for making a paginated query. A paginated query uses the {@link Connection} object type to encapsulate the edges, nodes and page information.
Synopsis
class PaginatedQueryCreator
extends QueryCreator
implements
OperationResolver
{
- // members
- protected Connection $connection;
- // Inherited members from FieldCreator
- protected Manager $manager;
- // methods
- public abstract Connection createConnection()
- public void getConnection()
- public array args()
- public void type()
- public void resolve()
- // Inherited methods from FieldCreator
- public void __construct()
- public array attributes()
- public Type|callable type()
- public array args()
- public array getAttributes()
- public array toArray()
- public mixed __get()
- public bool __isset()
- protected Closure|null getResolver()
Hierarchy
Members
protected
- $connection — SilverStripe\GraphQL\Pagination\Connection
- $manager — SilverStripe\GraphQL\Manager
Methods
public
- args()
- createConnection() — Get connection for this query
- getConnection()
- resolve()
- type()
Inherited from SilverStripe\GraphQL\FieldCreator
protected
- getResolver() — Returns a closure callback to the resolve method. This method will convert an invocation of this operation into a result or set of results.
public
- __get() — Dynamically retrieve the value of an attribute.
- __isset() — Dynamically check if an attribute is set.
- args() — List of arguments this query accepts.
- attributes() — Returns any fixed attributes for this type. E.g. 'name' or 'description'
- getAttributes() — Merge all attributes for this query (type, attributes, resolvers, etc).
- toArray() — Convert the Fluent instance to an array.
- type() — Gets the type for elements within this query, or callback to lazy-load this type