Skip to content

DATAMONGO-1457 - Add support for $slice in aggregation. #372

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 2 commits into from

Conversation

christophstrobl
Copy link
Member

We now support $slice in aggregation projections via the ProjectionOperationBuilder.

    // { $project : { field : { $slice : [$field, 10] } } }
    Aggregation.project().and("field").slice(10);

    // { $project : { field : { $slice : [$field, 20, 10] } } }
    Aggregation.project().and("field").slice(10, 20);

We now support $slice in aggregation projections via the ProjectionOperationBuilder.

    Aggregation.project().and("field").slice(10, 20)
mp911de pushed a commit that referenced this pull request Jul 8, 2016
We now support $slice in aggregation projections via the ProjectionOperationBuilder.

    Aggregation.project().and("field").slice(10, 20)

Original pull request: #372.
mp911de added a commit that referenced this pull request Jul 8, 2016
Add missing Javadoc to size operator. Mention Array Aggregation Operators in reference docs. Fix typos in reference docs.

Original pull request: #372.
@mp911de
Copy link
Member

mp911de commented Jul 8, 2016

That's merged with 9d51ea4. Updated documentation with eae32be.

@mp911de mp911de closed this Jul 8, 2016
@mp911de mp911de deleted the issue/DATAMONGO-1457 branch July 8, 2016 08:35
mp911de added a commit that referenced this pull request Jul 12, 2016
Add missing Javadoc to size operator. Mention Array Aggregation Operators in reference docs. Fix typos in reference docs.

Original pull request: #372.
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