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/employees
This returns the list of all the employeesGET /api/employees/:id
This returns the employee which has idPOST /api/employees
This creates a new employee with details in request bodyDELETE /api/employees/:id
This deletes an employee which has id
The base app structure is generated using express generator.