InsertOneOptions

io.github.zeal18.zio.mongodb.driver.model.InsertOneOptions
final case class InsertOneOptions(bypassDocumentValidation: Option[Boolean], comment: Option[BsonValue])

The options to apply to an operation that inserts a single document into a collection.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def withBypassDocumentValidation(bypassDocumentValidation: Boolean): InsertOneOptions

Sets the bypass document level validation flag.

Sets the bypass document level validation flag.

Attributes

bypassDocumentValidation

If true, allows the write to opt-out of document level validation.

def withComment(comment: BsonValue): InsertOneOptions

Sets the comment for this operation.

Sets the comment for this operation.

Attributes

comment

the comment

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product