Mutation

Type
Abstract Class
Namespace
craft\gql\base
Inherits
craft\gql\base\Mutation
Uses traits
craft\gql\base\GqlTypeTrait
Extended by
craft\gql\mutations\Asset, craft\gql\mutations\Category, craft\gql\mutations\Entry, craft\gql\mutations\GlobalSet, craft\gql\mutations\Ping, craft\gql\mutations\Tag
Since
3.5.0

Class Mutation

View source (opens new window)

# Public Methods

Method Description
getFieldDefinitions() List of fields for this type.
getMutations() Returns the mutations defined by the class as an array.
getType() Returns an instance of this schema object's type as provided by entity registry

# getMutations()

Returns the mutations defined by the class as an array.

View source (opens new window)

Returns

array (opens new window)

# Protected Methods

Method Description
getConditionalFields() Return conditional fields for this type.
prepareResolver() Load content fields and value normalizers on the resolver, based on content fields.

# prepareResolver()

Load content fields and value normalizers on the resolver, based on content fields.

View source (opens new window)

Arguments

Returns

null (opens new window)