3rd 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 accesible wia 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
Example how to do this was shown at end of last practical, you can watch the recording to get help ;)
Deadline: Monday 26/10/2020 - 23:59:59
If you have any problems contact your teacher using MS Teams: Petr Čaněk (@canp02).
Troubleshooting
Changes are not shown in playground at all
Don't forget to build code and restart the server.
Once you are finished
- send a link to playground page
- add example queries for all 4 cases
- using MS Teams to: Petr Čaněk (@canp02)
Deadline: Monday 26/10/2020 - 23:59:59
Bonus tasks for practise (no extra points)
- API has ability to filter books / authors by name and or bio
- API can limit number of results returned
- API can sort the results by year of release or year of birth