seppevs / migrate-mongo

A database migration tool for MongoDB in Node
MIT License
931 stars 166 forks source link

Misleading up() documentation #304

Open giovanni-bertoncelli opened 3 years ago

giovanni-bertoncelli commented 3 years ago

In README documentation there an incongruent use of the method up(): in one example a db and a client is passed to the function, in the other it is used without parameters. I find that a bit confusing: when I'm using this module API am I supposed to create and pass Mongo dabatase and client or the module itself should create them from the configuration?