seppevs/migrate-mongo

Typescript & mongoose

kasir-barati opened this issue · 2 comments

Hi, I am wondering why would you like to implement this package like this, you could integrate it with the mongoose/other ODMs and give us more safety with TypeScript too. What do you think?

I can not trust in js and hard-coded fields. I think this package could be more perfectional & helpful if:
we could define the mongoose models and pass them to the up and down. 🤔

Migration scripts, apart from collection creation and others, mainly deal with index creation and its management. Mongoose does not recommend using itself for dealing with indices.
That should be a strong enough reason not to use Mongoose.

thanks