From 135c6062e266d92e7a667320b44e12e41365a27d Mon Sep 17 00:00:00 2001 From: Pascal Sthamer Date: Tue, 12 Jan 2021 17:42:16 +0100 Subject: [PATCH] fix: fix root type in CustomFieldResolver (#1020) --- src/typegen/static.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/typegen/static.ts b/src/typegen/static.ts index 2a134ba6..8a476078 100644 --- a/src/typegen/static.ts +++ b/src/typegen/static.ts @@ -26,7 +26,7 @@ declare global { export type ModelNameInGraphQLTypes = ReturnType extends core.GetGen<'objectNames'> ? true : false export type CustomFieldResolver = ( - root: core.RootValueField, + root: core.SourceValue, args: core.ArgsValue, context: core.GetGen<'context'>, info: GraphQLResolveInfo,