A example repository to show how you can create your first GraphQL Restful with TS and not JS.
MIT License
A example repository to show how you can create your first GraphQL Restful with TS and not JS.
yarn install
yarn start
And open http://localhost:4000/graphql
npx create-graphql-express my-api
cd my-api
npm install
npm run dev
Read more: https://github.com/rafaelnsantos/create-graphql-api
mutation {
createMovie(
options: {
title: "bob3", minutes: 10
}) {
id
title
minutes
}
}
mutation {
updateMovie(id: 30
input: {
title: "New bob"
})
}
{
movies {
id
title
minutes
}
}
mutation {
deleteMovie(id: 3)
}
https://www.youtube.com/watch?v=WhzIjYQmWvs
I fixed some minor changes to works with the latest version of graphql-api
.
© Copyright 2021, Max Base