Monday, 8 July 2019

DeprecationWarning: collection.insert is deprecated. Use insertOne, insertMany or bulkWrite instead

I'm developing a LoopBack backend for Ionic frontend. It uses MongoDB as a database.

In package.json, I've tried to upgrade the dependency loopback-connector-mongodb upto ^3.6.0 from ^3.4.1, but I faced this caution.

DeprecationWarning: collection.insert is deprecated. Use insertOne, insertMany or bulkWrite instead.

However, I've still found no solution yet so that I guess I've got to downgrade again. (If so, no such caution ¯_(ツ)_/¯ )

Any better solution? Thanks.



from DeprecationWarning: collection.insert is deprecated. Use insertOne, insertMany or bulkWrite instead

No comments:

Post a Comment