node-etl icon indicating copy to clipboard operation
node-etl copied to clipboard

Mongo insert is deprecated

Open chantorak opened this issue 4 years ago • 2 comments

Using mongo:

etl.file('test.csv')
  .pipe(etl.csv())
  .pipe(etl.collect(10))
  .pipe(etl.mongo.insert(collection));

Will result in:

(node:62919) DeprecationWarning: collection.insert is deprecated. Use insertOne, insertMany or bulkWrite instead.

chantorak avatar Apr 20 '20 14:04 chantorak

Yes - so this still works but has to be updated. Do you mind taking a stab at a PR?

ZJONSSON avatar Apr 20 '20 14:04 ZJONSSON

#107

chantorak avatar Apr 24 '20 09:04 chantorak