An open API service indexing awesome lists of open source software.

https://github.com/jmbl1685/graphql-api-nodejs

Movie API sample - GraphQL [Node.js + Express.js].
https://github.com/jmbl1685/graphql-api-nodejs

crud-sample expressjs graphql javascript mongodb movies-api nodejs now-sh

Last synced: 8 months ago
JSON representation

Movie API sample - GraphQL [Node.js + Express.js].

Awesome Lists containing this project

README

          

## GraphQL API
#### Movie API example based on GraphQL [Node.js + Express.js].

```js
type Movie {
id: String!,
name: String,
gender: String,
ranking: Int,
year_release: Int,
cover: String
}

type Query {
GetMovie: [Movie!]!
GetMovieByID(_id: String): Movie
}

type Mutation {
CreateMovie(
name: String,
gender: String,
ranking: Int,
year_release: Int,
cover: String
): Movie!
DeleteMovie(_id: String): Movie!
UpdateMovie(
_id: String,
name: String,
gender: String,
ranking: Int,
year_release: Int,
cover: String
): Movie!
}
```