Product

Type
Class
Namespace
craft\commerce\gql\resolvers\elements
Inherits
craft\commerce\gql\resolvers\elements\Product » craft\gql\base\ElementResolver (opens new window) » craft\gql\base\Resolver (opens new window)
Since
3.0

Class Product

View source (opens new window)

# Public Methods

Method Description
prepareQuery() Prepare an element Query based on the source, arguments and the field name on the source.
resolve() (opens new window) Resolve a field to its value.
resolveCount() (opens new window) Resolve an element query to a total count of elements.
resolveOne() (opens new window) Resolve an element query to a single result.

# prepareQuery()

Prepare an element Query based on the source, arguments and the field name on the source.

View source (opens new window)

Arguments

Returns

mixed

# Protected Methods

Method Description
prepareElementQuery() (opens new window) Prepare an element query for given resolution argument set.