Skip to content

DATAMONGO-1326 - Add support for $lookup to aggregation. #344

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

DATAMONGO-1326 - Add support for $lookup to aggregation. #344

wants to merge 1 commit into from

Conversation

alessiofachechi
Copy link
Contributor

Now A/F MongoDB $lookup operation is supported.

Aggregation.lookup("other_collection", "my_field", "other_field", "my_new_field");

For this purpose now ExposedFieldsAggregationOperationContext foresees an additional mode, which allows for exposing new fields in addition to the ones exposed at the moment: unlike the group and project operations, the lookup operation in fact adds a new field to the previous field-set.

christophstrobl pushed a commit that referenced this pull request Mar 4, 2016
Original Pull Request: #344
CLA: 164120160221125037 (Alessio Fachechi)
christophstrobl added a commit that referenced this pull request Mar 4, 2016
Updated javadoc and formatting. Added tests and avoid unnecessary code blocks.

Original Pull Request: #344
mp911de added a commit that referenced this pull request Mar 4, 2016
…erator.

We now distinguish between aggregation operations that replace fields in the aggregation pipeline and those which inherit fields from previous operations. InheritsFieldsAggregationOperation is a nested interface of FieldsExposingAggregationOperation is a marker to lookup fields along the aggregation context chain. Added unit and integration tests. Mention lookup operator in docs.

Original pull request: #344.
mp911de added a commit that referenced this pull request Mar 7, 2016
…erator.

We now distinguish between aggregation operations that replace fields in the aggregation pipeline and those which inherit fields from previous operations. InheritsFieldsAggregationOperation is a nested interface of FieldsExposingAggregationOperation is a marker to lookup fields along the aggregation context chain. Added unit and integration tests. Mention lookup operator in docs.

Original pull request: #344.
christophstrobl pushed a commit that referenced this pull request Mar 8, 2016
Original Pull Request: #344
CLA: 164120160221125037 (Alessio Fachechi)
christophstrobl added a commit that referenced this pull request Mar 8, 2016
…terface.

Updated javadoc and formatting. Added tests and removed marker interface.

Original Pull Request: #344
christophstrobl pushed a commit that referenced this pull request Mar 8, 2016
…erator.

We now distinguish between aggregation operations that replace fields in the aggregation pipeline and those which inherit fields from previous operations. InheritsFieldsAggregationOperation is a nested interface of FieldsExposingAggregationOperation is a marker to lookup fields along the aggregation context chain. Added unit and integration tests. Mention lookup operator in docs.

Original pull request: #344.
@christophstrobl
Copy link
Member

thanks @alessiofachechi .
that one has been merged via 78e99e6. We slightly modified some of the changes and added a few more tests.

@alessiofachechi
Copy link
Contributor Author

Thanks to you @christophstrobl and @mp911de, the code looks more pretty now! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants