Packages

o

org.mongodb.scala.model

ReplaceOneModel

object ReplaceOneModel

A model describing the replacement of at most one document that matches the query filter.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReplaceOneModel
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def apply[TResult](filter: Bson, replacement: TResult, replaceOptions: ReplaceOptions): ReplaceOneModel[TResult]

    Construct a new instance.

    Construct a new instance.

    TResult

    the type of document to insert. This can be of any type for which a Codec is registered

    filter

    a document describing the query filter.

    replacement

    the replacement document

    replaceOptions

    the options to apply

    returns

    the new ReplaceOneModel

    Since

    2.3

  2. def apply[TResult](filter: Bson, replacement: TResult): ReplaceOneModel[TResult]

    Construct a new instance.

    Construct a new instance.

    TResult

    the type of document to insert. This can be of any type for which a Codec is registered

    filter

    a document describing the query filter.

    replacement

    the replacement document

    returns

    the new ReplaceOneModel