The number of documents that were inserted into the table.
This is always equal to the length of the insertedIds
array.
The primary key of the inserted (or upserted) row. These will be the same values as the primary keys which were present in the rows which were just inserted.
See TableInsertManyResult for more information about the primary key.
Overview
Represents the result of an
insertMany
command on a Table.Example
The primary key type
The type of the primary key of the table is inferred from the second type-param of the Table.
If not set, it defaults to
Partial<RSchema>
to keep the result type consistent.See