Skip to main content

cost

The cost directives is used to express the complexity of a field.

directive @cost(
complexity: Int! = 1
multipliers: [MultiplierPath!]
defaultMultiplier: Int
) on FIELD_DEFINITION

Arguments

cost.complexity ● Int! non-null scalar common

Defines the complexity of the field.

cost.multipliers ● [MultiplierPath!] list scalar common

Defines field arguments that act as complexity multipliers.

cost.defaultMultiplier ● Int scalar common