From 8c9c7200bf3db49bf1c32055d60fdd5ea3089add Mon Sep 17 00:00:00 2001 From: Saihajpreet Singh Date: Tue, 8 Feb 2022 09:43:12 -0500 Subject: [PATCH 1/2] feat: expose getArgumentValues --- 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..819ace3c40 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 { + getVariableValues, + getArgumentValues, + 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, From a0dcf0130ae81994df47049c9233df11516abfcd Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Wed, 9 Feb 2022 11:46:12 +0200 Subject: [PATCH 2/2] Update src/execution/index.ts --- src/execution/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/execution/index.ts b/src/execution/index.ts index 819ace3c40..7727e6d57c 100644 --- a/src/execution/index.ts +++ b/src/execution/index.ts @@ -16,7 +16,7 @@ export type { export { subscribe, createSourceEventStream } from './subscribe'; export { - getVariableValues, getArgumentValues, + getVariableValues, getDirectiveValues, } from './values';