1. make sure OGM provides the right column names via the GridDialect
2. make sure MongoDB filter the columns
In the plain association case of mongodb, I agree with what you said. But when the association is embedded int he owner's entity document, then you need to filter by the collection role to get what you want.
There are two steps to solve this problem:
1. make sure OGM provides the right column names via the GridDialect
2. make sure MongoDB filter the columns
In the plain association case of mongodb, I agree with what you said. But when the association is embedded int he owner's entity document, then you need to filter by the collection role to get what you want.
Does that make sense?