Mongo.replace_one

You're seeing just the function replace_one, go back to Mongo module for more information.
Link to this function

replace_one(topology_pid, coll, filter, replacement, opts \\ [])

View Source

Specs

Replace a single document matching the filter with the new document.

Options

  • :upsert - if set to true creates a new document when no document matches the filter (default: false)