class Rollback extends MutationScaffolder implements OperationResolver (View source)

deprecated 1.8.0 Use the latest version of graphql instead

Scaffolds a "rollback recursive" operation for DataObjects.

rollback[TypeName](ID!, ToVersion!)

Methods

public
__construct(string $dataObjectClass)

CreateOperationScaffolder constructor.

public
string
getName()

No description

public
array
createDefaultArgs(Manager $manager)

No description

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

Invoked by the Executor class to resolve this mutation / query

Details

__construct(string $dataObjectClass)

CreateOperationScaffolder constructor.

Parameters

string $dataObjectClass

string getName()

No description

Return Value

string

array createDefaultArgs(Manager $manager)

No description

Parameters

Manager $manager

Return Value

array

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

See also

Executor