Skip to main content

playlistCreate Mutation

Description

Creates a new playlist with the specified title. The playlist is created with an empty entries array and assigned a numeric ID. Returns the newly created playlist.

mutation playlistCreate($title: String) {
playlistCreate(title: $title) {
_id
id
title
created
link
entries {
comments
}
}
}

Variables

{
"title": "title"
}

Response

{
"playlistCreate": {
"_id": "7dc076d0bc793e322fb4f8a6",
"id": 7757661192113,
"title": "example",
"created": 1756540796063,
"link": "example",
"entries": [
{
"comments": "example"
}
]
}
}

Arguments

NameTypeDescription
titleStringTitle for the new playlist.

Returns

Playlist