TableRow

Type
Class
Namespace
craft\gql\types
Inherits
craft\gql\types\TableRow » craft\gql\base\ObjectType » GraphQL\Type\Definition\ObjectType
Since
3.3.0

Class TableRow

View source

# Public Methods

Method Description
__construct()
prepareRowFieldDefinition() Take an array of columns and return fields prepared for GraphQL object definition.
resolveWithDirectives() Resolve a value with the directives that apply to it.

# prepareRowFieldDefinition()

Take an array of columns and return fields prepared for GraphQL object definition.

View source

Arguments

  • $columns (array)
  • $typeName (string)
  • $includeHandles (boolean) – Whether columns also should be present by their field handles.

Returns

array

# Protected Methods

Method Description
resolve() Resolve a field value with arguments, context and resolve information.

# resolve()

Resolve a field value with arguments, context and resolve information.

View source

Arguments

  • $source (mixed) – The parent data source to use for resolving this field
  • $arguments (array) – Arguments for resolving this field.
  • $context (mixed) – The context shared between all resolvers
  • $resolveInfo (\GraphQL\Type\Definition\ResolveInfo) – The resolve information

Returns

mixed – $result