Skip to content

Conversation

chantorak
Copy link

@chantorak chantorak commented Apr 24, 2020

Added insertOne, marked insert as deprecated.


insertOne.prototype._fn = function(d) {
return this.collection
.then(collection =>collection.insertOne(d,this.options))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work on this PR! Would this work followed by an etl.collect(10)? I am getting doc has to be object error, which I assume means that due to a collect this is passing an array of docs. I think the docs in this PR should reflect this, remove the collect(10) in the example maybe?

@chantorak
Copy link
Author

Tests passing locally, can re-run the checks?

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

Successfully merging this pull request may close these issues.

2 participants