1st Backend Homework
Goal of this homework is to extend your GraphQL API with new data.
This data can be found in here.
Goals:
- [ ] Types for Books and Authors are created, their resolvers are implemented
- [ ] On GraphQL Playground, I can fetch single or list of books, same with authors
- [ ] All fields presented in data are accessible via API
- [ ] When fetching data about books I can fetch data of their authors too
- [ ] When fetching data about authors I can fetch data of their books too
Deadline: Monday 14/10/2025 - 23:59:59
If you have any problems contact your teacher using MS Teams: Petr Vnenk (@vnep00).
Implementation Notes
You'll be working with the NestJS backend that already has a clean architecture in place:
- Resolvers - Handle GraphQL requests and responses
- Domain - Contain business logic
- Repositories - Handle database operations with Prisma
- Modules - Organize code by feature
You are not required to be using actual database just yet for this homework.
Troubleshooting
Changes are not shown in playground (apollo sandbox) at all
Don't forget to build code and restart the server.
Once you are finished
- send a link to playground (apollo sandbox) page
- add example queries for all 4 cases
- using MS Teams to: Petr Vnenk (@vnep00)
Deadline: Monday 14/10/2024 - 23:59:59