Skip to main content

User

User is someone that leaves Comments, and logs in.

type User {
id: ID!
username: String
avatar: String
badges: [String!]
email: String
duplicateEmail: String
emailVerified: Boolean
profiles: [Profile!]!
role: USER_ROLE!
moderatorNotes: [ModeratorNote!]!
ignoreable: Boolean!
comments(
first: Int = 10
orderBy: COMMENT_SORT = CREATED_AT_DESC
after: Cursor
): CommentsConnection!
allComments(
first: Int = 10
after: Cursor
): CommentsConnection!
rejectedComments(
first: Int = 10
after: Cursor
): CommentsConnection!
ongoingDiscussions(
limit: Int = 5
): [Story!]!
recentCommentHistory: RecentCommentHistory!
commentModerationActionHistory(
first: Int = 10
after: Cursor
): CommentModerationActionConnection!
status: UserStatus!
tokens: [Token!]!
ignoredUsers: [User!]!
notifications: UserEmailNotificationSettings!
inPageNotifications: UserInPageNotificationSettings!
createdAt: Time!
lastDownloadedAt: Time
scheduledDeletionDate: Time
deletedAt: Time
moderationScopes: UserModerationScopes
membershipScopes: UserMembershipScopes
ssoURL: String
mediaSettings: UserMediaSettings!
bio: String
premoderatedBecauseOfEmailAt: Time
hasNewNotifications: Boolean!
lastSeenNotificationDate: Time
lastFeaturedDate: Time
featuredCommenter: Boolean
newCommenter: Boolean
}

Fields

User.id ● ID! non-null scalar

id is the identifier of the User.

User.username ● String scalar

username is the name of the User visible to other Users.

User.avatar ● String scalar

avatar is the url to the avatar for a specific User.

User.badges ● [String!] list scalar

badges are user display badges

User.email ● String scalar

email is the current email address for the User.

User.duplicateEmail ● String scalar

duplicateEmail is set on users that have a matching email with another user in the database. Only relevant during the account completion process.

User.emailVerified ● Boolean scalar

emailVerified when true indicates that the given email address has been verified.

User.profiles ● [Profile!]! non-null union

profiles is the array of profiles assigned to the user.

User.role ● USER_ROLE! non-null enum

role is the current role of the User.

User.moderatorNotes ● [ModeratorNote!]! non-null object

moderatorNotes are notes left by moderators about the User.

User.ignoreable ● Boolean! non-null scalar

ignoreable is a computed property based on the user's role. Typically, users with elevated privileges aren't allowed to be ignored.

User.comments ● CommentsConnection! non-null object

comments are the comments written by the User.

User.comments.first ● Int scalar
User.comments.orderBy ● COMMENT_SORT enum
User.comments.after ● Cursor scalar

User.allComments ● CommentsConnection! non-null object

allComments are comments regardless of visibility status.

User.allComments.first ● Int scalar
User.allComments.after ● Cursor scalar

User.rejectedComments ● CommentsConnection! non-null object

rejectedComments are comments that have been rejected.

User.rejectedComments.first ● Int scalar
User.rejectedComments.after ● Cursor scalar

User.ongoingDiscussions ● [Story!]! non-null object

ongoingDiscussions are stories where the given user has written comments in sorted by their last comment date.

User.ongoingDiscussions.limit ● Int scalar

User.recentCommentHistory ● RecentCommentHistory! non-null object

recentCommentHistory returns recent commenting history by the User.

User.commentModerationActionHistory ● CommentModerationActionConnection! non-null object

commentModerationActionHistory returns a CommentModerationActionConnection that this User has created.

User.commentModerationActionHistory.first ● Int scalar
User.commentModerationActionHistory.after ● Cursor scalar

User.status ● UserStatus! non-null object

status stores the user status information regarding moderation state.

User.tokens ● [Token!]! non-null object

tokens lists the access tokens associated with the account.

User.ignoredUsers ● [User!]! non-null object

ignoredUsers will return the list of ignored users.

User.notifications ● UserEmailNotificationSettings! non-null object

notifications stores the email notification settings for the given User.

User.inPageNotifications ● UserInPageNotificationSettings! non-null object

inPageNotifications stores the in-page notification settings for the given User.

User.createdAt ● Time! non-null scalar

createdAt is the time that the User was created at.

User.lastDownloadedAt ● Time scalar

lastDownloadedAt the last time the user made a download request of their account data.

User.scheduledDeletionDate ● Time scalar

scheduledDeletionDate is the time when the User is scheduled to be deleted.

User.deletedAt ● Time scalar

deletedAt is the time when the User was deleted.

User.moderationScopes ● UserModerationScopes object

moderationScopes describes the scopes for moderation. These only apply when the user has a MODERATOR role.

User.membershipScopes ● UserMembershipScopes object

membershiptScopes describes the scopes for membership. These only apply when the user has a MEMBER role.

User.ssoURL ● String scalar

ssoURL is the url for managing sso account

User.mediaSettings ● UserMediaSettings! non-null object

mediaSettings are the user's preferences around media stream behaviour.

User.bio ● String scalar

bio is a user-defined biography.

User.premoderatedBecauseOfEmailAt ● Time scalar

premoderatedBecauseOfEmailAt is set when a user was set to pre-moderated comments for having an email that was caught by the email pre-moderation filter.

User.hasNewNotifications ● Boolean! non-null scalar

hasNewNotifications returns true if the user has received new notifications since they last viewed their notifications tab.

User.lastSeenNotificationDate ● Time scalar

lastSeenNotificationDate is the date of the last notification the user viewed.

User.lastFeaturedDate ● Time scalar

lastFeaturedDate is when a user last had a comment featured. This is used for the Top commenter badge feature.

User.featuredCommenter ● Boolean scalar

featuredCommenter is whether a user has had a comment featured within the last 10 days or not

User.newCommenter ● Boolean scalar

newCommenter is whether a user has joined within the last seven days.

Returned By

user query ● viewer query

Member Of

AcknowledgeModMessagePayload object ● AcknowledgeWarningPayload object ● BanStatusHistory object ● BanUserPayload object ● CancelAccountDeletionPayload object ● CancelScheduledAccountDeletionPayload object ● Comment object ● CommentModerationAction object ● CommentStatusUpdatedPayload object ● CreateModeratorNotePayload object ● CreateTokenPayload object ● DeactivateTokenPayload object ● DeleteModeratorNotePayload object ● DeleteUserAccountPayload object ● DemoteMemberPayload object ● DemoteModeratorPayload object ● DSAReport object ● DSAReportHistoryItem object ● Flag object ● IgnoreUserPayload object ● Invite object ● ModeratorNote object ● ModMessageStatusHistory object ● NotificationDSAReportDetails object ● PremodStatusHistory object ● PremodUserPayload object ● PromoteMemberPayload object ● PromoteModeratorPayload object ● RemovePremodUserPayload object ● RemoveUserBanPayload object ● RemoveUserIgnorePayload object ● RemoveUserSuspensionPayload object ● RemoveUserWarningPayload object ● RequestAccountDeletionPayload object ● ScheduleAccountDeletionPayload object ● SendModMessagePayload object ● SetEmailPayload object ● SetPasswordPayload object ● SetUsernamePayload object ● StorySettings object ● SuspendUserPayload object ● SuspensionStatusHistory object ● Tag object ● UpdateBioPayload object ● UpdateEmailNotificationSettingsPayload object ● UpdateEmailPayload object ● UpdateInPageNotificationSettingsPayload object ● UpdatePasswordPayload object ● UpdateSSOProfileIDPayload object ● UpdateUserAvatarPayload object ● UpdateUserBanPayload object ● UpdateUserEmailPayload object ● UpdateUserMediaSettingsPayload object ● UpdateUserMembershipScopesPayload object ● UpdateUserModerationScopesPayload object ● UpdateUsernamePayload object ● UpdateUserRolePayload object ● UpdateUserUsernamePayload object ● User object ● UserDeletionHistory object ● UserEdge object ● UsernameHistory object ● UsersConnection object ● WarningStatusHistory object ● WarnUserPayload object