We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 259a41e commit 2b12bbeCopy full SHA for 2b12bbe
driver-core/src/main/com/mongodb/client/result/UpdateResult.java
@@ -63,6 +63,7 @@ public abstract class UpdateResult {
63
*
64
* @return if the replace resulted in an inserted document, the _id of the inserted document, otherwise null
65
*/
66
+ @Nullable
67
public abstract BsonValue getUpsertedId();
68
69
/**
@@ -192,6 +193,7 @@ public long getModifiedCount() {
192
193
}
194
195
@Override
196
197
public BsonValue getUpsertedId() {
198
throw getUnacknowledgedWriteException();
199
0 commit comments