Get current user

currentUser: User

Arguments

This operation takes no arguments.

Response

Returns User. Open the type for its fields and nested types.

FieldTypeDescription
idID!User ID.
emailStringEmail address.
nameStringDisplay name.
avatarSrcStringAvatar image URL.
oAuthOAuthLinked sign-in accounts.
approvedBooleanWhether the user is approved.
subscriptionSubscriptionAccount subscription; only its owner can read it.
projectRoleUserProjectRoleRole in a project, when the user is read through one.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
query CurrentUser {
  currentUser {
    id
    name
    approved
    avatarSrc
    email
  }
}
json
{}