spring-projects/spring-data-mongodb — pull request #157 by christophstrobl (2014-03-27 08:55:58+00:00)
Title: DATAMONGO-471 - Add support for '$each' when using '$addToSet'. 

Additionally to `addToSet(String, Object)` the method `addToSet(String)` has been introduced, returning a `Builder` allowing creation of `$addToSet` command for either single value, or multiple values using `$each`.

Using value:
```java
new Update().addToSet("key").value("spring");
```
Using each:
```java
new Update().addToSet("key").each("spring", "data", "mongodb");
```