Skip to content

courses

Fetch paginated course collection

Arguments

after · String · Returns the elements in the list that come after the specified cursor.
before · String · Returns the elements in the list that come before the specified cursor.
first · Int · Returns the first _n_ elements from the list.
last · Int · Returns the last _n_ elements from the list.

Returns

CoursePaginationConnection

Example

query courses(
$active: Boolean
$course_type: CourseTypeFilter
$keywords: String
$only_available: Boolean
$after: String
$before: String
$first: Int
$last: Int
) {
courses(
active: $active
course_type: $course_type
keywords: $keywords
only_available: $only_available
after: $after
before: $before
first: $first
last: $last
) {
edges
nodes
page_info
total_count
}
}