Skip to content

Commit

Permalink
chore: deprecate collection.insert method (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
buttercubz committed Sep 10, 2021
1 parent 0b65098 commit f449d9a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/collection/collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ export class Collection<T> {
return insertedIds[0];
}

/**
* @deprecated Use `insertOne, insertMany` or `bulkWrite` instead.
*/
insert(
docs: InsertDocument<T> | InsertDocument<T>[],
options?: InsertOptions,
Expand Down

0 comments on commit f449d9a

Please sign in to comment.