Skip to main content

AvatarViewer

A profile avatar image.

Avatars are uploaded via the setAccountAvatar mutation and served at a stable URL. Supported formats: PNG, JPG, GIF, and WebP (max 1 MB).

type AvatarViewer {
id: ID!
url: String!
contentType: String!
fileSize: Int!
width: Int
height: Int
createdAt: DateTime!
updatedAt: DateTime!
}

Fields

AvatarViewer.id ● ID! non-null scalar {#id}

Unique identifier for this avatar.

AvatarViewer.url ● String! non-null scalar {#url}

Publicly accessible URL where the avatar image is served.

AvatarViewer.contentType ● String! non-null scalar {#content-type}

MIME type of the image (e.g., image/png, image/jpeg).

AvatarViewer.fileSize ● Int! non-null scalar {#file-size}

File size in bytes.

AvatarViewer.width ● Int scalar {#width}

Image width in pixels, if available.

AvatarViewer.height ● Int scalar {#height}

Image height in pixels, if available.

AvatarViewer.createdAt ● DateTime! non-null scalar {#created-at}

When the avatar was first uploaded (UTC).

AvatarViewer.updatedAt ● DateTime! non-null scalar {#updated-at}

When the avatar was last replaced (UTC).

Member Of

AccountViewer object ● AvatarViewerPayload object