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": "e963e39594c419113e170c32",
"id": 9519051130534,
"title": "example",
"created": 1704590935659,
"link": "example",
"entries": [
{
"comments": "example"
}
]
}
}

Arguments

NameTypeDescription
titleStringTitle for the new playlist.

Returns

Playlist