IMongoCollection.insertOne(document: Record<string, unknown>,options?: MongoWriteOptions): Promise<{ acknowledged: boolean; insertedId: IMongoObjectId | string | number; }>
Inserts one document.
optional
options: MongoWriteOptions
The insertOne options (e.g. a session)
Promise<{ acknowledged: boolean; insertedId: IMongoObjectId | string | number; }>
{ acknowledged, insertedId }, insertedId an ObjectId