YABGSMS

Editing a user's name

You can edit a user's name using an admin token

You can update any user's full name using the following GraphQL query:

mutation UpdateUserFullName($updateUserId: Int!, $fullName: String!) {
  updateUserFullName(id: $updateUserId, fullName: $fullName) {
    id, username, fullName
  }
}

which will map

{
    "id": 2,
    "username": "doe_john",
    "fullName": "John Doe"
}

to the following:

{
  "data": {
    "updateUserFullName": {
      "id": 2,
      "username": "doe_john",
      "fullName": "Doe John"
    }
  }
}