Category
- Type
- Class
- Namespace
- craft\gql\resolvers\elements
- Inherits
- craft\gql\resolvers\elements\Category » craft\gql\base\ElementResolver » craft\gql\base\Resolver
- Since
- 3.3.0
Class Category
Protected Properties
Property | Description |
---|---|
eagerLoadableFieldsByContext | array – Cache fields by context. |
Public Methods
Method | Description |
---|---|
getArrayableArguments() | Returns a list of all the arguments that can be accepted as arrays. |
prepareArguments() | Prepare arguments for use, converting to array where applicable. |
prepareQuery() | Prepare an element Query based on the source, arguments and the field name on the source. |
resolve() | Resolve a field to its value. |
prepareQuery()
Prepare an element Query based on the source, arguments and the field name on the source.
Arguments
Returns
mixed
Protected Methods
Method | Description |
---|---|
extractEagerLoadCondition() | Extract eager load conditions for a given resolve information. Preferrably at the very top of the query. |