Skip to Content
GraphQL Tools
DocumentationAPI@graphql-tools/utilssrcfunctionsgetArgumentValues

Function: getArgumentValues()

getArgumentValues(def, node, variableValues?): Record<string, any>

Defined in: packages/utils/src/getArgumentValues.ts:24

Prepares an object map of argument values given a list of argument definitions and list of argument AST nodes.

Note: The returned value is a plain Object with a prototype, since it is exposed to user code. Care should be taken to not pull values from the Object prototype.

Parameters

def

GraphQLDirective | GraphQLField<any, any, any>

node

FieldNode | DirectiveNode

variableValues?

Record<string, any> = {}

Returns

Record<string, any>