Skip to main content
function getArgumentValues
import { getArgumentValues } from "https://deno.land/x/kilatgraphql@16.6.0/mod.ts";

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: GraphQLField<unknown, unknown> | GraphQLDirective
optional
variableValues: Maybe<ObjMap<unknown>>

Returns

{ [argument: string]: unknown; }