From 6871bad65a7bdc0f9416f49944cd774f713cfb0b Mon Sep 17 00:00:00 2001 From: Saihajpreet Singh Date: Wed, 9 Feb 2022 04:50:14 -0500 Subject: [PATCH] feat: expose getArgumentValues (#3487) Co-authored-by: Ivan Goncharov --- src/execution/index.ts | 6 +++++- src/execution/values.ts | 2 -- src/index.ts | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/execution/index.ts b/src/execution/index.ts index 7f4bffab79..7727e6d57c 100644 --- a/src/execution/index.ts +++ b/src/execution/index.ts @@ -15,4 +15,8 @@ export type { export { subscribe, createSourceEventStream } from './subscribe'; -export { getVariableValues, getDirectiveValues } from './values'; +export { + getArgumentValues, + getVariableValues, + getDirectiveValues, +} from './values'; diff --git a/src/execution/values.ts b/src/execution/values.ts index 5a404b9c2f..79ec77361f 100644 --- a/src/execution/values.ts +++ b/src/execution/values.ts @@ -152,8 +152,6 @@ function coerceVariableValues( * 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. - * - * @internal */ export function getArgumentValues( def: GraphQLField | GraphQLDirective, diff --git a/src/index.ts b/src/index.ts index b99a678b8d..7fbf4d6d68 100644 --- a/src/index.ts +++ b/src/index.ts @@ -318,6 +318,7 @@ export { defaultFieldResolver, defaultTypeResolver, responsePathAsArray, + getArgumentValues, getVariableValues, getDirectiveValues, subscribe,