Query

Type
Abstract Class
Namespace
craft\gql\base
Inherits
craft\gql\base\Query
Uses traits
craft\gql\base\GqlTypeTrait
Extended by
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
Since
3.3.0

Class Query

View source (opens new window)

# Public Methods

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

# getQueries()

Returns the queries defined by the class as an array.

View source (opens new window)

Arguments

Returns

array (opens new window)

# Protected Methods

Method Description
getConditionalFields() Return conditional fields for this type.