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": "06491de012849a0574030e1e",
"id": 7349245862620,
"title": "example",
"created": 1712663835654,
"link": "example",
"entries": [
{
"comments": "example"
}
]
}
}

Arguments

NameTypeDescription
titleStringTitle for the new playlist.

Returns

Playlist