In this project I'm gonna show some movies, details and reviews about movies. There you can read reviews, add or remove your reviews.
query AllMovies {
allMovies {
nodes {
id
title
imgUrl
}
}
} query {
movieById(id: "$id") {
id
imgUrl
releaseDate
title
movieReviewsByMovieId {
nodes {
id
body
rating
title
userByUserReviewerId {
name
id
}
}
}
}
}| Param | Type | Description |
|---|---|---|
id |
string |
Required. The ID to show details about a movie |
mutation {
createMovieReview(
input: {
movieReview: {
title: "$title",
movieId: "$movieId",
userReviewerId: "$userId",
rating: $rating,
body: "$body",
}
}
) {
movieReview {
title
rating
nodeId
movieId
id
body
userByUserReviewerId {
name
id
}
}
}
}| Param | Type | Description |
|---|---|---|
title |
string |
Not Required. The Title to add in new movie review |
body |
string |
Not Required. The Body to add in new movie review |
userId |
string |
Required. The UserId who added a new movie review |
rating |
integer |
Not Required. The Rating to add in new movie review |
movieId |
string |
Required. The ID to add in movie review |
mutation {
deleteMovieReviewById(
input: {
id: "$reviewId"
}
) {
deletedMovieReviewId
}
}| Param | Type | Description |
|---|---|---|
reviewId |
string |
Required. The ReviewId to remove from movie review |
Clone the project
git clone git@github.com:ViniciusCdeAlmeida/coolmovies.gitRun pub get
flutter pub getRun the project
flutter runInsira um gif ou um link de alguma demonstração
If anyone wants to send a feedback, please send an email to viniciusc.almeida1@gmail.com or conctact me in linkedin Vinicius Correa de Almeida.