View Source Mongo.InsertOneResult (mongodb-driver v1.5.0)

The successful result struct of Mongo.insert_one/4. Its fields are:

  • :inserted_id - The id of the inserted document

Summary

Types

@type t() :: %Mongo.InsertOneResult{
  acknowledged: term(),
  inserted_id: nil | BSON.ObjectId.t()
}