Collection.findAndModify

Convenience method for calling mongoc's insert with the upsert flag.

struct Collection
findAndModify
(
T1 = BSON
T2 = BSON
T3 = BSON
T4 = BSON
)
(
ref T1 query
,,
T3 sort = empty!T3()
,
T4 fields = empty!T4()
,
bool remove = false
,
bool upsert = false
,
bool _new = true
,)

Meta