This repo is the code base repository for the the blog post Migrating Existing REST APIs to GraphQL.
If you want to know what is exactly is GraphQL, refer this post.
This services contains APIs to provide employees info and adding new employees.
Check this pull request, which shows the effort needed to migrate REST to GraphQL APIs.
GET /api/employeesThis returns the list of all the employeesGET /api/employees/:idThis returns the employee which has idPOST /api/employeesThis creates a new employee with details in request bodyDELETE /api/employees/:idThis deletes an employee which has id
The base app structure is generated using express generator.