Hi @amaster507!
Thanks again for the reply. Originally I had the GraphQL mutation like you have suggested here. The problem was that I can not update the email field with GraphQL since it has the @id directive in the schema. You told me that this is only possible with DQL. Applying DQL works but unfortunately I do not know the right syntax to update the reference for role with DQL.
I have tried:
set {
"role": {
"id": ${input.roleId}
}
}
where I get the error that \"role\": { \"id\": 0x3d3aa4e71 } at line 2 column 7: Invalid character '{' inside mutation text". So this does not seem to work. Then I’ve tried
set {
<${input.userId}> <User.role.id> "${input.roleId}" .
}
which at least runs through without errors, updates all the other fields, but leaves role.id untouched.
I could obviously run the DQL mutation on email only and do the rest with a GraphQL mutation but this seems a bit hacky…