Closed PabloRamirezDev closed 2 years ago
The insertOne command throws the error Pipeline must be an object, although it doesn't receive any pipeline parameter.
Pipeline must be an object
pipeline
Checked the source code and could solve it changing args.pipeline by args.document in the insertOne util.
args.pipeline
args.document
insertOne
Feel free to fork, fix & open PR, otherwise I'll try and do it over the weekend. Thanks for raising the issue.
Merged, and v2.1.2 published to npm.
The insertOne command throws the error
Pipeline must be an object
, although it doesn't receive anypipeline
parameter.Checked the source code and could solve it changing
args.pipeline
byargs.document
in theinsertOne
util.