Small comparison with GraphQL with single end poing and API REST
You can start the server with
npm start
GraphiQL end point at http://localhost:4000/graphql
curl \
-X POST \
-H "Content-Type: application/json" \
--data '{ "query": "{ books { id } }" }' \
http://localhost:4000/graphql
HTTP GET on http://localhost:4000/api/ to get all the books
HTTP GET on http://localhost:4000/api/:id to get a book from id
HTTP POST on http://localhost:4000/api/:id to update the book's author
I have reproduced, and took inspiration, from the following articles.