Skip to content

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

2 participants