io.realm.mongodb.mongo.options
The options to apply when updating documents.
Constructors
Constructor and Description |
|---|
Method Summary
Modifier and Type | Method and Description |
|---|---|
public boolean | isUpsert () Returns true if a new document should be inserted if there are no matches to the query filter. |
public String | toString () |
public UpdateOptions | Set to true if a new document should be inserted if there are no matches to the query filter. |
Inherited Methods
Methods inherited from class java.lang.Object :
getClass,hashCode,equals,clone,toString,notify,notifyAll,wait,wait,wait,finalize
Constructor Detail
public UpdateOptions () |
|---|
Method Detail
isUpsert
public boolean isUpsert () |
|---|
Returns true if a new document should be inserted if there are no matches to the query filter. The default is false. Returns true if a new document should be inserted if there are no matches to the query filter |
toString
upsert
Set to true if a new document should be inserted if there are no matches to the query filter. Parameters
Returns this |