I just started using loopback, and I am stuck with ACL. My database has a relation like so:
- User has many tests and tests have many users ( many to many, in loopback I am using hasmanythrough).
- Each test has several sections (one to many)
- Each section has several question(one to many)
Now, I want to get all sections that a user has , or all questions that a user has. I know that using $owner needs a belongsTo in the respective model, but in my case that is not possible. Is there any way to achieve this without having to completely write my own queries ?