diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/Update.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/Update.java index 04fa60c4b5..044175579b 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/Update.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/Update.java @@ -119,6 +119,17 @@ public Update set(String key, @Nullable Object value) { return this; } + + /** + * KeysToUpdate getter + * + * @return keys to update. + */ + public Set getKeysToUpdate() { + return keysToUpdate; + } + + /** * Update using the {@literal $setOnInsert} update modifier *