Created By: Tyler Ivie
query {
allMovies {
id
title
description
releaseDate
image
}
}
query {
tvShow {
id
title
description
releaseDate
image
voteAverage
}
}
Install npm dependencies:
query {
watchList {
id
title
description
releaseDate
image
watched
}
}
mutation addMovieToWatchlist {
addMovieToWatchlist(
data: {
id: 1
title: "Inception"
description: "This is a description for the movie Inception"
releaseDate: "2010-03-24T00:00:00.000Z"
watched: false
}
) {
id
title
description
releaseDate
watched
}
}
mutation updateWatchListMovie {
updateWatchListMovie(
id: 7
data: { id: 1, title: "Inception", watched: false }
) {
id
watched
}
}
mutation deleteMovieWatchlist {
deleteMovieWatchlist(id: 7) {
title
id
}
}