diff --git a/apps/dh/api-dh/source/DataHub.WebApi/GraphQL/GraphQLMutation.cs b/apps/dh/api-dh/source/DataHub.WebApi/GraphQL/GraphQLMutation.cs index 0f3c962fad..0e6636d885 100644 --- a/apps/dh/api-dh/source/DataHub.WebApi/GraphQL/GraphQLMutation.cs +++ b/apps/dh/api-dh/source/DataHub.WebApi/GraphQL/GraphQLMutation.cs @@ -23,14 +23,14 @@ public class GraphQLMutation : ObjectGraphType { public GraphQLMutation() { - Field>("permission") - .Argument>("permission", "Permission to update") + Field>("updatePermission") + .Argument>("input", "Permission to update") .Resolve() .WithScope() .WithService() .ResolveAsync(async (context, client) => { - var updatePermissionDto = context.GetArgument("permission"); + var updatePermissionDto = context.GetArgument("input"); await client.UpdatePermissionAsync(updatePermissionDto); return await client.GetPermissionAsync(updatePermissionDto.Id); }); diff --git a/libs/dh/shared/domain/src/lib/generated/graphql.ts b/libs/dh/shared/domain/src/lib/generated/graphql.ts index 0c72730475..68a345cb9c 100644 --- a/libs/dh/shared/domain/src/lib/generated/graphql.ts +++ b/libs/dh/shared/domain/src/lib/generated/graphql.ts @@ -87,12 +87,12 @@ export enum EicFunction { export type GraphQlMutation = { __typename?: 'GraphQLMutation'; - permission: Permission; + updatePermission: Permission; }; -export type GraphQlMutationPermissionArgs = { - permission: UpdatePermissionInput; +export type GraphQlMutationUpdatePermissionArgs = { + input: UpdatePermissionInput; }; export type GraphQlQuery = { diff --git a/schema.graphql b/schema.graphql index 128a70ca68..07b1cc1319 100644 --- a/schema.graphql +++ b/schema.graphql @@ -88,9 +88,9 @@ enum EicFunction { } type GraphQLMutation { - permission( + updatePermission( """Permission to update""" - permission: UpdatePermissionInput! + input: UpdatePermissionInput! ): Permission! }