From 872414ab8e152754cb9ed4cf4219e04d94a6cebd Mon Sep 17 00:00:00 2001 From: Glen Dsouza Date: Wed, 8 May 2024 21:53:28 +0530 Subject: [PATCH] update createAdmin Mutation (#1975) --- src/GraphQl/Mutations/mutations.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/GraphQl/Mutations/mutations.ts b/src/GraphQl/Mutations/mutations.ts index c5d0ea1c1a..2ed67be88d 100644 --- a/src/GraphQl/Mutations/mutations.ts +++ b/src/GraphQl/Mutations/mutations.ts @@ -346,7 +346,9 @@ export const REMOVE_MEMBER_MUTATION = gql` export const ADD_ADMIN_MUTATION = gql` mutation CreateAdmin($orgid: ID!, $userid: ID!) { createAdmin(data: { organizationId: $orgid, userId: $userid }) { - _id + user { + _id + } } } `;