Packages

  • package root

    This is the documentation for the MongoDB Scala driver.

    This is the documentation for the MongoDB Scala driver.

    Driver structure

    The mongodb scala driver.

    To get started you need a MongoClient instance, either from a connection string or via a org.mongodb.scala.MongoClientSettings.

    Notable packages include:

    Definition Classes
    root
  • package org
    Definition Classes
    root
  • package mongodb
    Definition Classes
    org
  • package scala

    The MongoDB Scala Driver package

    The MongoDB Scala Driver package

    Contains type aliases and companion objects to help when using the Scala API

    Definition Classes
    mongodb
    Since

    1.0

  • package model

    The model package containing models and options that help describe MongoCollection operations

    The model package containing models and options that help describe MongoCollection operations

    Definition Classes
    scala
  • object MergeOptions extends Serializable

    Options to control the behavior of the $merge aggregation stage

    Options to control the behavior of the $merge aggregation stage

    Definition Classes
    model
    Since

    2.7

  • WhenMatched
  • WhenNotMatched

object WhenNotMatched

The behavior of /$merge if a result document does not match an existing document in the out collection.

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

Value Members

  1. val DISCARD: WhenNotMatched

    Discard the document; i.e.

    Discard the document; i.e. $merge does not insert the document into the output collection.

  2. val FAIL: WhenNotMatched

    Stop and fail the aggregation operation.

    Stop and fail the aggregation operation. Any changes to the output collection from previous documents are not reverted.

  3. val INSERT: WhenNotMatched

    Insert the document into the output collection.