Skip to content

Cannot add two pullAll to an Update [DATAMONGO-1346] #2261

@spring-projects-issues

Description

@spring-projects-issues

Francesco Ferro opened DATAMONGO-1346 and commented

I'm trying to have two pulAll in one update but it seems that it doesn't add element to the list but override the last one added

Update update = new Update();
update.pullAll("field1", anArray);
update.pullAll("field2", anOtherArray);

if I check the content:

update.getUpdateObject();
"$pullAll" -> " size = 1"

and the value is field2


Referenced from: commits 8b1805a, 3e5b4f2, 113566a

Backported to: 1.8.2 (Gosling SR2), 1.7.3 (Fowler SR3)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions