diff --git a/CHANGELOG.md b/CHANGELOG.md index 20c9c8d6a53..93d9039b50e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ * Fix template strings usage in guessSchemaByRootField error message.
[@nagelflorian](https://github.com/nagelflorian) in [#936](https://github.com/apollographql/graphql-tools/pull/936) +* Update `IFieldResolver` to allow typed input args.
+ [@luk3thomas](https://github.com/luk3thomas) in [#932](https://github.com/apollographql/graphql-tools/pull/932) * Documentation updates.
[@Amorites](https://github.com/Amorites) in [#944](https://github.com/apollographql/graphql-tools/pull/944)
[@trevor-scheer](https://github.com/trevor-scheer) in [#946](https://github.com/apollographql/graphql-tools/pull/946)
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;