This is NodeJs(Express) GraphQL server for Kyyti test assignment.
- Clone / Download the project
- npm install
- node server.js
- go to http://localhost:8080/graphiql to test GraphQL Querries and Mutation
- id: ID!
- first_name: String!
- last_name: String!
- position: String!
- Users -> Give the list of all users
- User (id: ID!) -> Give the user with the same id
- addUser(first_name: String! last_name: String! position: String!) -> Add user
- updateUser(id: ID! first_name: String last_name: String position: String) -> Edit user's data (first_name, last_name and position can be empty, in that case they won't be changed )
- deleteUser(id: ID!) -> Deletes user with the same id