getArgumentValues.d.cts 566 B

12345678910
  1. import { GraphQLField, GraphQLDirective, DirectiveNode, FieldNode } from 'graphql';
  2. /**
  3. * Prepares an object map of argument values given a list of argument
  4. * definitions and list of argument AST nodes.
  5. *
  6. * Note: The returned value is a plain Object with a prototype, since it is
  7. * exposed to user code. Care should be taken to not pull values from the
  8. * Object prototype.
  9. */
  10. export declare function getArgumentValues(def: GraphQLField<any, any> | GraphQLDirective, node: FieldNode | DirectiveNode, variableValues?: Record<string, any>): Record<string, any>;