InsertManyOptions

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

The options to apply to an operation that inserts multiple documents 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): InsertManyOptions

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): InsertManyOptions

Sets the comment for this operation.

Sets the comment for this operation.

Attributes

comment

the comment

def withOrdered(ordered: Boolean): InsertManyOptions

Sets whether the server should insert the documents in the order provided.

Sets whether the server should insert the documents in the order provided.

Attributes

ordered

true if documents should be inserted in order

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product