Skip to content

Commit d7471cf

Browse files
fix(mutations): Replace the custom type by the official GraphQL type for custom mutations.
1 parent 1c8af1c commit d7471cf

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/types/types.d.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,8 @@ export type CustomResolver<TContext = any> = (
7272
info: TInfo
7373
) => Promise<any>
7474

75-
export type CustomMutationConfiguration<TContext = any> = {
76-
type: GraphQLObjectType | GraphQLList<GraphQLObjectType>
77-
description?: string
78-
args: EndpointArgs
79-
resolve: CustomResolver<TContext>
80-
}
81-
8275
export type MutationList<TContext = any> = {
83-
[key: string]: CustomMutationConfiguration<TContext>
76+
[key: string]: GraphQLFieldConfig<TSource, TContext, TArgs>
8477
}
8578

8679
export type CustomSubscriptionConfiguration<TContext = any> = {

0 commit comments

Comments
 (0)