Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mongo insert is deprecated #106

Open
chantorak opened this issue Apr 20, 2020 · 2 comments
Open

Mongo insert is deprecated #106

chantorak opened this issue Apr 20, 2020 · 2 comments

Comments

@chantorak
Copy link

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.
@ZJONSSON
Copy link
Owner

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

@chantorak
Copy link
Author

#107

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants