Mongo.find_one_and_delete

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

find_one_and_delete(topology_pid, coll, filter, opts \\ [])

View Source

Specs

find_one_and_delete(
  GenServer.server(),
  collection(),
  BSON.document(),
  Keyword.t()
) :: result(BSON.document())

Finds a document and deletes it.

Options

  • :max_time - The maximum amount of time to allow the query to run (in MS)
  • :projection - Limits the fields to return for all matching documents.
  • :sort - Determines which document the operation modifies if the query selects multiple documents.
  • :collation - Optionally specifies a collation to use in MongoDB 3.4 and higher.