Mongo.find_one_and_delete
You're seeing just the function
find_one_and_delete
, go back to Mongo module for more information.
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.