royib / clean-architecture-nestJS

An in-depth implementation of Clean Architecture using NestJS and type-script
795 stars 192 forks source link

How to add Sequelize? #7

Open mattia-beta opened 2 years ago

mattia-beta commented 2 years ago

Hi, thank you for your work. How can I replace mongo with sequelize?

I've created a data-services/mysql/mysql.module following the example of mongo you provided. However I get a lot of Type errors like: Property 'findOneById' does not exist on type 'Model<T, T>'.ts(2339)

Can you provide an example?

Thanks