Convert the REST API from last weeks assignment to GraphQL.
- Clone this repo
- create .env based on .env.example
- use MongoDB Atlas to make sure geospatial queries work
- use individual database name to prevent clashes with other apps
npm i
to install dependenciesnpm run dev
to start development servernpm run test
to run tests
- Your task is to complete all TODOs in the code until all tests are passed
- Note that file upload needs to be done with Rest API. Endpoint:
api/vi/upload
- endpoint needs to return object defined in UploadMessageResponse interface.
- Interfaces are basically the same as last week. The difference is interfaces for tests.
- DB schemas are the same as last week
- No authentication and authorization this week. All mutations are done with id properties. So no need to use req.user.
- Always empty your cats and users after tests.