Zum Hauptinhalt springen
Mutation

setUserAvatar

Veraltet

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.

Argumente

Rückgabe

User!

Beispiel

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