Closed andyfry01 closed 6 years ago
Will you be able to resolve the merge conflicts?
I was able to grok your PR and just pushed an update to #25 to support the mongodb driver v3.x.
I'm going to close this PR for now. The rest of the work is with documenting the changes. If you have time for a code review of #25 that would be very helpful. Thanks again for getting involved.
As in just do a pull of the async-await branch and do a general code review? I could do that. If you'd like some documentation updates I can do that too
https://github.com/jedireza/mongo-models/pull/25 is ready for a final review. I've updated the docs.
This PR updates the package to accommodate breaking changes introduced in the Node MongoDB driver v3+.
Changes:
Changed the connection API for MongoModels#connect. Previously it took a mongodb URI string as its first argument, and it now accepts a connection object consisting of two properties:
mongodb://localhost:27017
)test_database
)Updated API.md, README.md, and test/index.js to accommodate the API change.
This resolves #27