Mongo.replace_one
You're seeing just the function
replace_one
, go back to Mongo module for more information.
Specs
replace_one( GenServer.server(), collection(), BSON.document(), BSON.document(), Keyword.t() ) :: result(Mongo.UpdateResult.t())
Replace a single document matching the filter with the new document.
Options
:upsert
- if set totrue
creates a new document when no document matches the filter (default:false
)