Skip to content

Commit a110047

Browse files
committed
update mutation structure
1 parent c8f3459 commit a110047

File tree

1 file changed

+7
-4
lines changed
  • app/[locale]/dashboard/[entityType]/[entitySlug]/admin

1 file changed

+7
-4
lines changed

app/[locale]/dashboard/[entityType]/[entitySlug]/admin/addUser.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,14 @@ const addUserDoc: any = graphql(`
1818
mutation addUserToOrganization($input: AddRemoveUserToOrganizationInput!) {
1919
addUserToOrganization(input: $input) {
2020
__typename
21-
... on TypeOrganizationMembership {
22-
role {
23-
name
24-
id
21+
... on TypeOrganizationMembershipMutationResponse {
22+
data {
23+
role {
24+
name
25+
id
26+
}
2527
}
28+
success
2629
}
2730
}
2831
}

0 commit comments

Comments
 (0)