SilverStripe\GraphQL\FieldCreator
Base type for query types within graphql. I.e. mutations or queries
Synopsis
class FieldCreator
{
- // members
- protected Manager $manager;
- // methods
- 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
Uses
- SilverStripe\Core\Injector\Injectable
Members
protected
- $manager — SilverStripe\GraphQL\Manager
Methods
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
- __construct()
- __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