@Retention(value=RUNTIME) @Target(value={METHOD,ANNOTATION_TYPE}) @Documented public @interface Update
?0
, ?1
and so on. The update will be applied to documents matching the either method name
derived or annotated query, but not to any custom implementation methods.Modifier and Type | Optional Element and Description |
---|---|
String[] |
pipeline
Takes a MongoDB JSON string representation of an aggregation pipeline to define the update stages to be executed.
|
String |
update
Takes a MongoDB JSON string to define the actual update to be executed.
|
String |
value
Takes a MongoDB JSON string to define the actual update to be executed.
|
@AliasFor(value="value") public abstract String update
public abstract String[] pipeline
This allows to e.g. define update statement that can evaluate conditionals based on a field value, etc.
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.