Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Commit

Permalink
feat: add yancey-music.gql
Browse files Browse the repository at this point in the history
  • Loading branch information
YanceyOfficial committed Dec 26, 2019
1 parent f344d95 commit 0577f72
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions gql/yancey-music.gql
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
mutation CreateYanceyMusic {
createYanceyMusic(
input: {
title: "test4"
releaseDate: "2019-12-26T07:14:07.655Z"
soundCloudUrl: "https://t4est3.com"
posterUrl: "https://1test4.com"
}
) {
_id
title
releaseDate
soundCloudUrl
posterUrl
createdAt
updatedAt
}
}

query GetYanceyMusics {
getYanceyMusics {
_id
title
releaseDate
soundCloudUrl
posterUrl
createdAt
updatedAt
}
}

mutation UpdateYanceyMusicById {
updateYanceyMusicById(
input: {
id: "f4b445d6-d569-4a29-a760-da497675db38"
title: "test4"
releaseDate: "2019-12-26T07:14:07.655Z"
soundCloudUrl: "https://t4est3.com"
posterUrl: "https://1test4.com"
}
) {
_id
title
releaseDate
soundCloudUrl
posterUrl
createdAt
updatedAt
}
}

mutation DeleteYanceyMusicById {
deleteYanceyMusicById(id: "f4b445d6-d569-4a29-a760-da497675db38") {
_id
title
releaseDate
soundCloudUrl
posterUrl
createdAt
updatedAt
}
}

mutation DeleteYanceyMusics {
deleteYanceyMusics(
ids: ["60e5c5a2-f69f-41df-bc04-53f9c699e498", "00c602bd-e364-491d-abb1-45cf930ac443"]
) {
n
ok
deletedCount
}
}

0 comments on commit 0577f72

Please sign in to comment.