COMP3133 Assignment 1 W2023
COMP3133 Assignment 1 W2023
Users Collection
Field Name Type Constraint
_id Object ID Auto Generate and not needs to
add the fields in model
username String Primary Key
email String Unique
password String May be encrypted with other fields
Employee Collection
Field Name Type Constraint
_id Object ID Auto Generate and
not needs to add
the fields in models
first_name String Required
last_name String Required
email String Unique
gender String Male/Female/Other
salary Float Required
Notes:
- Implement GraphQL API using Apollo server
- Test GraphQL API using GraphiQL OR Postman
- Validate the input data whenever required
- Return error details or success response details whenever required
- All data must be sent back and forth in JSON Object format
- Optionally apply JWT security concept to secure all your API calls
- No late submission accepted
Submission:
1) Make single docx file with all labeled screenshots.
2) MongoDB console screenshots.
3) Postman API collection or GraphiQL screenshots.
4) Screenshots of each API tested with response and payload.
5) Project ZIP file after deleting node_modules folder.
6) GitHub Project Link and add me as a collaborator if private repo.
(GitHub username pritamworld)
7) Sample user detail to login.
8) Any comments if need for clarification.
9) If hosted on Heroku/cyclic/Vercel/docker or any platform share the
details with URLs.
Evaluations:
Communication:
References:
- https://graphql.org/learn/
- https://www.howtographql.com/
- https://www.apollographql.com/blog/backend/using-express-with-
graphql-server-node-js/?_ga=2.81606039.1894545270.1674864877-
990100504.1674864877
~~~ Wish you all the Best ~~~