From 8207da67c5368cdae02d38b8b6ada8478be82911 Mon Sep 17 00:00:00 2001 From: Luke Thomas Date: Sat, 18 Aug 2018 16:54:11 -0500 Subject: [PATCH 1/2] Update field resolver interface --- src/Interfaces.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Interfaces.ts b/src/Interfaces.ts index 02da5c7c07d..c8c688c5666 100644 --- a/src/Interfaces.ts +++ b/src/Interfaces.ts @@ -77,9 +77,9 @@ export type MergeInfo = { }>; }; -export type IFieldResolver = ( +export type IFieldResolver = ( source: TSource, - args: { [argument: string]: any }, + args: TArgs, context: TContext, info: GraphQLResolveInfo & { mergeInfo: MergeInfo }, ) => any; From eafc0fb7ff2c6bcf8cc8b9d650fbcdef42c6f5b5 Mon Sep 17 00:00:00 2001 From: Luke Thomas Date: Sat, 18 Aug 2018 17:18:42 -0500 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8825b8985ca..aad38364b9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ### vNEXT -* ... +* Update IFieldResolver to allow typed input args [PR #932](https://github.com/apollographql/graphql-tools/pull/932). Related to [Issue #704](https://github.com/apollographql/graphql-tools/issues/704) ### v3.1.1