I have collection A, collection B and collection C. Collection A has many B and B has many C ( B has A primary key as a field, and C has B primary key as field).
Something like this
class A {
//fields
}
class B {
a_id
}
class C {
b_id
}
I want to get all C that corresponds to A, eg I want to match all C's where the B they belong to, belongs to certain A.
If I have A id, I want to get all of the C's that indirectly belong to this A. Using mongoose and MongoDB