V3 return relations of relations when fetching

System Information
  • Strapi Version: 3.6.8
  • Operating System: Debian GNU/Linux
  • Database: MySQL 2.3.2
  • Node Version: 14.19.1
  • NPM Version: 6.14.16
  • Yarn Version: 1.22.17

Hi, my relations look like this:

Classroom --(has many) --> Student --(has many) --> Assignments

When fetching Classroom with .find, I was able to get a list of all the Students, but I’d also like to get a list of each Student‘s assignments in the same query instead of doing a separate fetch for students’ assignments.

How can I achieve this eager loading of all relations, and how can I limit the level of eager loading? Some of the assignments have a “previous” and “next” relation to other assignments, I imagine it could be problematic if the fetch keeps going.

Thanks!