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": "71830bb8bb5b7348a1117ddf",
"id": 1204889114115,
"title": "example",
"created": 1703425930169,
"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