Skip to main content

playlists Query

Description

Retrieves a paginated list of playlists. Results are sorted by numeric ID in descending order. Page size is fixed by the server.

query playlists($page: Int) {
playlists(page: $page) {
playlists {
_id
id
title
created
link
}
pagination {
limit
count
page
pages
hasMore
}
}
}

Variables

{
"page": 1
}

Response

{
"playlists": {
"playlists": [
{
"_id": "0424b74b3ea76bc312bce377",
"id": 6739532572485,
"title": "example",
"created": 1710688684973,
"link": "example"
}
],
"pagination": {
"limit": 20,
"count": 10,
"page": 1,
"pages": 1,
"hasMore": true
}
}
}

Arguments

NameTypeDescription
pageIntThe requested page number. Defaults to 1 if not specified.

Returns

PlaylistsConnection