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

Commit

Permalink
feat: add live-tour.gql
Browse files Browse the repository at this point in the history
  • Loading branch information
YanceyOfficial committed Dec 26, 2019
1 parent 7625448 commit 558039b
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions gql/live-tour.gql
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
mutation CreateLiveTour {
createLiveTour(
input: { title: "test4", posterUrl: "https://1test4.com", showTime: "2019-12-26T07:14:07.655Z" }
) {
_id
title
posterUrl
showTime
createdAt
updatedAt
}
}

query GetLiveTours {
getLiveTours {
_id
title
posterUrl
showTime
createdAt
updatedAt
}
}

mutation UpdateLiveTourById {
updateLiveTourById(
input: {
id: "f4b445d6-d569-4a29-a760-da497675db38"
title: "test2"
posterUrl: "https://1test4.com"
showTime: "2019-12-26T07:14:07.655Z"
}
) {
_id
title
posterUrl
showTime
createdAt
updatedAt
}
}

mutation DeleteLiveTourById {
deleteLiveTourById(id: "f4b445d6-d569-4a29-a760-da497675db38") {
_id
title
posterUrl
showTime
createdAt
updatedAt
}
}

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

0 comments on commit 558039b

Please sign in to comment.