Skip to content

Commit

Permalink
fix: fix root type in CustomFieldResolver (#1020)
Browse files Browse the repository at this point in the history
  • Loading branch information
P4sca1 authored Jan 12, 2021
1 parent 694de1c commit 135c606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/typegen/static.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ declare global {
export type ModelNameInGraphQLTypes<ReturnType> = ReturnType extends core.GetGen<'objectNames'> ? true : false

export type CustomFieldResolver<TypeName extends string, FieldName extends string> = (
root: core.RootValueField<TypeName, FieldName>,
root: core.SourceValue<TypeName>,
args: core.ArgsValue<TypeName, FieldName>,
context: core.GetGen<'context'>,
info: GraphQLResolveInfo,
Expand Down

0 comments on commit 135c606

Please sign in to comment.