Skip to content

DATAMONGO-832 Add support for $slice in Update.push. #374

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

mp911de
Copy link
Member

@mp911de mp911de commented Jul 8, 2016

We now support $slice in update push operations via the PushOperatorBuilder.

// { "$push" : { "values" : { "$slice" : 5 , "$each" : [ "one" , "two" , "three"]}}}
 new Update().push("key").slice(5).each(Arrays.asList("one", "two", "three"));

Related ticket: DATAMONGO-832

mp911de added 2 commits July 8, 2016 11:50
We now support $slice in Update operations via the PushOperatorBuilder.

    new Update().push("key").slice(5).each(Arrays.asList("one", "two", "three"));
@mp911de mp911de changed the title Issue/datamongo 832 DATAMONGO-832 Add support for $slice in Update.push. Jul 8, 2016
christophstrobl pushed a commit that referenced this pull request Jul 11, 2016
We now support $slice in Update operations via the PushOperatorBuilder.

    new Update().push("key").slice(5).each(Arrays.asList("one", "two", "three"));

Original Pull Request: #374
christophstrobl added a commit that referenced this pull request Jul 11, 2016
Moved newly introduced types into order. Added missing @SInCE tag and additional test.
Updated reference documentation for update operators and added $slice operator to "what’s new" section.

Original Pull Request: #374
@christophstrobl christophstrobl deleted the issue/DATAMONGO-832 branch July 11, 2016 08:04
mp911de added a commit that referenced this pull request Jul 12, 2016
We now support $slice in Update operations via the PushOperatorBuilder.

    new Update().push("key").slice(5).each(Arrays.asList("one", "two", "three"));

Original Pull Request: #374
mp911de pushed a commit that referenced this pull request Jul 12, 2016
Moved newly introduced types into order. Added missing @SInCE tag and additional test.
Updated reference documentation for update operators and added $slice operator to "what’s new" section.

Original Pull Request: #374
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