OBJECT

UserNode

Represents the authenticated user. From here you can access a user's projects.

link GraphQL Schema definition

  • type UserNode implements Account {
  • # Unique key
  • pk: Int!
  • email: String!
  • username: String
  • avatarUrl: String!
  • lastActive: DateTime @deprecated( reason: "Prefer lastActiveAt instead" )
  • # Date & time of last account activity
  • lastActiveAt: DateTime
  • # Whether the account has superuser privileges
  • isSuper: Boolean
  • status: AccountStatusEnum!
  • # Teams the user is a member of. Requires teams:read scope.
  • #
  • # Arguments
  • # ownerPk: [Not documented]
  • # first: Default of 25 if both `first` and `last` are not
  • # supplied
  • # before: [Not documented]
  • # after: [Not documented]
  • # last: [Not documented]
  • teams(ownerPk: Int, first: Int, before: String, after: String, last: Int): TeamConnection
  • # Projects a user owns or is collaborating on. Requires projects:read scope.
  • #
  • # Arguments
  • # archived: Filter by archived status
  • # teamPk: Filter by team pk
  • # companyPk: Filter by company pk
  • # isOwner: Filter by owner status
  • # isCompanyProject: Filter by whether a project is a company
  • # project
  • # name: Filter projects beginning with this name
  • # filters: Filter projects based upon their attributes
  • # sortBy: Fields that can be used to sort the list of projects
  • # by. You can sort the fields in ascending or descending order
  • # first: Default of 25 if both `first` and `last` are not
  • # supplied
  • # before: [Not documented]
  • # after: [Not documented]
  • # last: [Not documented]
  • projects(
  • archived: Boolean,
  • teamPk: Int,
  • companyPk: Int,
  • isOwner: Boolean,
  • isCompanyProject: Boolean,
  • name: String,
  • filters: ProjectFilterField,
  • sortBy: ProjectSortFieldEnum,
  • first: Int,
  • before: String,
  • after: String,
  • last: Int
  • ): ProjectConnection @deprecated( reason: "User projects will no longer be supported with Marvel 3 as all projects will now be accessible through the Company Node" )
  • # Projects a user has collaborated on outside of their current workspace.
  • #
  • # Arguments
  • # name: Filter projects beginning with this name
  • # filters: Filter projects based upon their attributes
  • # sortBy: Fields that can be used to sort the list of projects
  • # by. You can sort the fields in ascending or descending order
  • # first: Default of 25 if both `first` and `last` are not
  • # supplied
  • # before: [Not documented]
  • # after: [Not documented]
  • # last: [Not documented]
  • sharedProjects(
  • name: String,
  • filters: ProjectFilterField,
  • sortBy: ProjectSortFieldEnum,
  • first: Int,
  • before: String,
  • after: String,
  • last: Int
  • ): SharedProjectConnection @deprecated( reason: "Shared projects are only available for users who had projects shared with other workspaces in Marvel 2. It will be removed when multiple workspaces are introduced." )
  • # The company that a user is a member of. Requires company:read scope
  • company: CompanyNode
  • # Role of the user
  • role: RoleEnum @deprecated( reason: "Development preview" )
  • }