Class RemoteUpdateOptions

  • Direct Known Subclasses:
    SyncUpdateOptions

    public class RemoteUpdateOptions
    extends Object
    The options to apply when updating documents.
    • Constructor Detail

      • RemoteUpdateOptions

        public RemoteUpdateOptions()
    • 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
      • upsert

        public RemoteUpdateOptions upsert​(boolean upsert)
        Set to true if a new document should be inserted if there are no matches to the query filter.
        Parameters:
        upsert - true if a new document should be inserted if there are no matches to the query filter.
        Returns:
        this