query Query{
movies{
id,
name,
releaseDate,
movieRating,
actor{
id,
name
}
}
}
mutation Create($input: MovieInput!){
createMovie(movie: $input){
id,
name,
releaseDate,
movieRating,
actor{
id,
name
}
}
}
{
"input": {
"name": "A Movie",
"releaseDate": "2020-1-1",
"company": "C1",
"actorId": 1,
"movieRating": "R"
}
}
subscription Subscription {
movieEvent(movieRatings:[G, PG, PG13]){
id,
movieId,
name,
timeStamp,
movieRating
}
}