class ReadOneLegacyResolver implements OperationResolver (View source)

deprecated 4.8..5.0 Use silverstripe/graphql:^4 functionality.

Shim to make readOne work like GraphQL 4

Methods

__construct(DataObject $dataObject)

No description

mixed
resolve(mixed $object, array $args, mixed $context, ResolveInfo $info)

Invoked by the Executor class to resolve this mutation / query

Details

__construct(DataObject $dataObject)

Parameters

DataObject $dataObject

mixed resolve(mixed $object, array $args, mixed $context, ResolveInfo $info)

Invoked by the Executor class to resolve this mutation / query

Parameters

mixed $object
array $args
mixed $context
ResolveInfo $info

Return Value

mixed