Filtering one collection using DBRef from a second one that refers to another third

I am not too sure but I would try to use $ for the field names as it is usually required withing a $expr.

See https://docs.mongodb.com/manual/reference/operator/query/expr

1 Like