Skip to main content

AccountViewer

Information about the authenticated user.

type AccountViewer {
id: ID!
email: String!
firstName: String
lastName: String
createdAt: DateTime!
updatedAt: DateTime!
organizations(
sort: ViewerOrganizationsSort
cursor: Cursor
): ViewerOrganizationsPage
defaultOrganization: ViewerOrganization
}

Fields

AccountViewer.id ● ID! non-null scalar

AccountViewer.email ● String! non-null scalar

Email address

AccountViewer.firstName ● String scalar

First name

AccountViewer.lastName ● String scalar

Last name

AccountViewer.createdAt ● DateTime! non-null scalar

When you signed up (UTC)

AccountViewer.updatedAt ● DateTime! non-null scalar

When your profile was last updated (UTC)

AccountViewer.organizations ● ViewerOrganizationsPage object

Organizations you belong to.

AccountViewer.organizations.sort ● ViewerOrganizationsSort input

How to sort results

AccountViewer.organizations.cursor ● Cursor input

Pagination cursor from a previous response

AccountViewer.defaultOrganization ● ViewerOrganization object

Your most recently joined organization. Useful for setting a default context.

Implemented By

Viewer union