bangbang93 / mongoose-typescript

Build mongoose schema with typescript and decorator
https://www.npmjs.com/package/mongoose-typescript
14 stars 2 forks source link

Motivation and comparison with existing module #4

Closed dandv closed 2 years ago

dandv commented 4 years ago

Hi @bangbang93, thanks for publishing this library. At the time it was published, there were already at least two packages with a similar goal:

I'm curious what the motivation was for creating mongoose-typescript and how it aims to differ from the existing projects. Thanks!

bangbang93 commented 4 years ago

I had never found ts-mongoose before. But after reading the doc, it's not using decorators. As for typegoose, here is my pull request szokodiakos/typegoose#194 which had not handled for a while. But I need this to be fixed. So I fork the repo in my company private npm registry firstly. And then I write this module.

dandv commented 4 years ago

I had never found ts-mongoose before.

Well, when I'm trying to solve a problem, I search for existing solutions first. Helps me save a lot of effort. In this case, one can search for "typescript" at https://plugins.mongoosejs.io, and find several projects that attempt to do the same thing, combine TypeScript with mongoose.

here is my pull request szokodiakos/typegoose#194 which had not handled for a while.

That repo is abandoned. Work has moved to https://github.com/typegoose/typegoose

bangbang93 commented 4 years ago

I create that pr in 2018 when the repo had not to be abandoned. In fact, I had learned a lot from typegoose.