class Publish extends PublishOperation (View source)

deprecated 1.8.0 Use the latest version of graphql instead

Scaffolds a generic update operation for DataObjects.

Methods

public
__construct(string $dataObjectClass)

No description

public
string
getName()

No description

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

No description

protected
array
createDefaultArgs(Manager $manager)

Use a generated Input type, and require an ID.

protected
checkPermission(DataObjectInterface $obj, Member $member = null)

No description

protected
doMutation(DataObjectInterface $obj)

No description

protected
createOperationName()

No description

protected
getReadingStage()

Set the stage for the read query

Details

__construct(string $dataObjectClass)

No description

Parameters

string $dataObjectClass

string getName()

No description

Return Value

string

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

No description

Parameters

$object
array $args
$context
ResolveInfo $info

protected array createDefaultArgs(Manager $manager)

Use a generated Input type, and require an ID.

Parameters

Manager $manager

Return Value

array

protected checkPermission(DataObjectInterface $obj, Member $member = null)

No description

Parameters

DataObjectInterface $obj
Member $member

protected doMutation(DataObjectInterface $obj)

No description

Parameters

DataObjectInterface $obj

protected createOperationName()

No description

protected getReadingStage()

Set the stage for the read query