Class SyncUpdateOptions
- java.lang.Object
-
- com.mongodb.stitch.core.services.mongodb.remote.RemoteUpdateOptions
-
- com.mongodb.stitch.core.services.mongodb.remote.sync.SyncUpdateOptions
-
public class SyncUpdateOptions extends RemoteUpdateOptions
The options to apply when updating documents.
-
-
Constructor Summary
Constructors Constructor Description SyncUpdateOptions()
-
Method Summary
Modifier and Type Method Description SyncUpdateOptions
upsert(boolean upsert)
Set to true if a new document should be inserted if there are no matches to the query filter.-
Methods inherited from class com.mongodb.stitch.core.services.mongodb.remote.RemoteUpdateOptions
isUpsert, toString
-
-
-
-
Method Detail
-
upsert
public SyncUpdateOptions upsert(boolean upsert)
Description copied from class:RemoteUpdateOptions
Set to true if a new document should be inserted if there are no matches to the query filter.- Overrides:
upsert
in classRemoteUpdateOptions
- Parameters:
upsert
- true if a new document should be inserted if there are no matches to the query filter.- Returns:
- this
-
-