Skip to content

GqlTypeTrait ​

Type
Trait
Namespace
craft\gql\base
Implemented by
craft\gql\base\Mutation, craft\gql\base\Query, craft\gql\mutations\Asset, craft\gql\mutations\Category, craft\gql\mutations\Entry, craft\gql\mutations\GlobalSet, craft\gql\mutations\Ping, craft\gql\mutations\Tag, craft\gql\queries\Address, craft\gql\queries\Asset, craft\gql\queries\Category, craft\gql\queries\Entry, craft\gql\queries\GlobalSet, craft\gql\queries\Ping, craft\gql\queries\Tag, craft\gql\queries\User, craft\gql\types\Mutation, craft\gql\types\Query
Since
3.3.0

Trait GqlTypeTrait

View source

Public Methods ​

MethodDescription
getType()Returns an instance of this schema object's type as provided by entity registry

getType() ​

Returns an instance of this schema object's type as provided by entity registry

View source

Arguments ​

  • $fields (array, null) – Optional fields to use

Returns ​

\GraphQL\Type\Definition\ObjectType

Protected Methods ​

MethodDescription
getConditionalFields()Return conditional fields for this type.

getConditionalFields() ​

Return conditional fields for this type.

View source

Returns ​

array