struct Mongo::Bulk::UpdateOne

Overview

Update one document.

Defined in:

cryomongo/bulk.cr

Constructors

Instance Method Summary

Instance methods inherited from struct Mongo::Bulk::WriteModel

<=>(other) <=>, initialize initialize

Constructor methods inherited from struct Mongo::Bulk::WriteModel

new new

Constructor Detail

def self.new(filter, update : Array(BSON) | BSON, array_filters : Nil | Array(BSON) = nil, collation : Mongo::Collation | Nil = nil, hint : BSON | String | Nil = nil, upsert : Bool | Nil = nil) #

Instance Method Detail

def array_filters : Array(BSON) | Nil #

def collation : Collation | Nil #

def filter : BSON #

def hint : String | BSON | Nil #

def update : BSON | Array(BSON) #

def upsert : Bool | Nil #