Skip to content

CourseMembership

Relationship between a user and a course

Fields

course · Course · the course associated with this membership
course_id · ID · id of course related to this membership
course_status · String! · required · status of related course completion
created_at · ISO8601DateTime! · required · date membership was created
cursor · Cursor! · required · Pagination cursor
id · ID! · required · The unique identifier of the membership
is_paused · Boolean! · required · Whether the membership is currently paused
next_incomplete_item · CourseItem · The next incomplete item
next_next_incomplete_item · CourseItem · The incomplete item after the next incomplete item
paused_at · ISO8601DateTime · Timestamp the membership was paused; null when not paused
start_at · ISO8601DateTime · start of course
total_paused_duration · Int! · required · Cumulative paused duration in seconds across all pause/resume cycles
updated_at · ISO8601DateTime! · required · date membership was updated
user · User · the user associated with this membership
user_id · ID · id of user related to this membership

Used By

Definition

"""
Relationship between a user and a course
"""
type CourseMembership {
"""
the course associated with this membership
"""
course: Course
"""
id of course related to this membership
"""
course_id: ID
"""
status of related course completion
"""
course_status: String!
"""
date membership was created
"""
created_at: ISO8601DateTime!
"""
Pagination cursor
"""
cursor: Cursor!
"""
The unique identifier of the membership
"""
id: ID!
"""
Whether the membership is currently paused
"""
is_paused: Boolean!
"""
The next incomplete item
"""
next_incomplete_item: CourseItem
"""
The incomplete item after the next incomplete item
"""
next_next_incomplete_item: CourseItem
"""
Timestamp the membership was paused; null when not paused
"""
paused_at: ISO8601DateTime
"""
start of course
"""
start_at: ISO8601DateTime
"""
Cumulative paused duration in seconds across all pause/resume cycles
"""
total_paused_duration: Int!
"""
date membership was updated
"""
updated_at: ISO8601DateTime!
"""
the user associated with this membership
"""
user: User
"""
id of user related to this membership
"""
user_id: ID
}