Skip to main content
Mutation

setUserAvatar

Deprecated

Sets the signed-in user's avatar to the image uploaded through mintUserAvatarUpload, and returns the user.

Not needed: an uploaded image is picked up on the next read. Fails when nothing was uploaded.

Arguments

Returns

User!

Example

mutation SetUserAvatar($input: SetUserAvatarInput!) {
  setUserAvatar(input: $input) {
    color
    createdAt
    email
    emailVerified
    firstName
    id
    image
    isAdmin
  }
}