A JSON document stored in MongoDB is tree-based. If it contains multiple sub-elements, they will have to be unwound first before processing.
One way to do that is with the "$unwind" operator in the aggregation framework.
Examples here: https://docs.mongodb.org/v2.4/reference/operator/aggregation/unwind/
No comments:
Post a Comment