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 (opens new window)
# Public Methods
Method | Description |
---|---|
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 (opens new window)
Arguments
$fields
(array (opens new window), null (opens new window)) – Optional fields to use
Returns
\GraphQL\Type\Definition\ObjectType
# Protected Methods
Method | Description |
---|---|
getConditionalFields() | Return conditional fields for this type. |
# getConditionalFields()
Return conditional fields for this type.
View source (opens new window)