InsertOneResult.insertedId

The identifier that was automatically generated, if not set.

struct InsertOneResult
BsonObjectID insertedId;

Meta