mongo ~master (2018-04-13T19:25:57Z)
Dub
Repo
Collection.findAndModify
mongo
Collection
Convenience method for calling mongoc's insert with the upsert flag.
struct
Collection
auto
findAndModify
(
T1
=
BSON
T2
=
BSON
T3
=
BSON
T4
=
BSON
)
(
ref
T1
query
,
T2
update
,
T3
sort
=
empty
!
T3
()
,
T4
fields
=
empty
!
T4
()
,
bool
remove
= false
,
bool
upsert
= false
,
bool
_new
= true
,
BSON
reply
=
empty
()
)
Meta
Source
See Implementation
mongo
Collection
constructors
this
functions
count
deleteOne
drop
find
findAndModify
findOne
insert
insertMany
processMongoDocUDAs
unlock
update
variables
collection
Convenience method for calling mongoc's insert with the upsert flag.