Handbook
Glossary
save ( collection assoc -- )
Vocabulary
mongodb
.
driver
Inputs
collection
a collection
assoc
object
Outputs
None
Word description
Saves the object to the given collection. If the object contains a field name "_id" this command automatically performs an update (with upsert) instead of a plain save
Definition
USING:
kernel
mongodb.driver.private
mongodb.msg
;
IN:
mongodb.driver
:
save
( collection assoc -- )
[
check-collection
]
dip
<mdb-insert-msg>
send-message-check-error
;