Marketplace API / Types
User
ObjectA District account's public profile.
type User implements NodeFields
| Field | Type | Description |
|---|---|---|
avatar | Image | The user's avatar image. |
createdAt | DateTime! | When the user signed up. |
description | String | The user's profile description. Null when the user has not written one. |
displayName | String! | The user's preferred display name. |
id | ID! | A globally unique ID. Treat this value as an opaque string. |
itemsSoldCount | NonNegativeInt! | Number of units that the user sold in this storefront: the sum of the item quantities of the user's paid orders. Cancelled orders, orders awaiting payment and fully refunded orders do not count. |
joinedAt | DateTime | When the user joined this storefront. Null when no join date is available. |
lastOnlineAt | DateTime | When the user was last active. Changes at most once every ten minutes. Null for an anonymous caller. |
livestreams | UserLivestreamConnection! | Livestreams hosted by this user, with search, filters, sorting, facets, and pagination.Arguments: after: String — Cursor for forward pagination. Mutually exclusive with offset.facets: [LivestreamFacetRequestInput!] — Facets to compute for the matching livestreams.first: Int — Maximum number of livestreams to return. Defaults to 20. Values above 100 are reduced to 100.offset: Int — Zero-based offset for page-based pagination. Providing it with after is rejected. Only the first 10,000 matches can be paged; pages are shortened at the boundary, and offsets of 10,000 or more return an empty page.query: String — Full-text search query matched against title and streamer name.sort: LivestreamSortInput — Sort order for the result set. Defaults to ascending start time.where: LivestreamSearchWhereInput — Filters to apply. |
username | String! | The user's username. Usernames can change and are not unique identifiers. |
viewer | UserViewerState | The caller's relation to this user. Null for a signed-out caller. |
Returned by
Announcement.authorAuction.sellerAuction.winnerBlockUserSuccess.userCart.sellerChatMessage.authorChatMessage.mentionedUsersDirectConversation.participantDirectConversationNotStarted.participantGiveaway.sellerGiveaway.winnerLivestream.streamerLivestreamSellerBucket.sellerMentionableMemberEdge.nodeOrder.sellerProduct.sellerProductSellerBucket.sellerQuery.userQuery.userByUsernameReportUserSuccess.userUnblockUserSuccess.userViewer.user