feathersjs-ecosystem / feathers-sequelize

A Feathers service adapter for the Sequelize ORM. Supporting MySQL, MariaDB, Postgres, SQLite, and SQL Server
MIT License
208 stars 74 forks source link

fix: service find method return type #427

Open yassinedorbozgithub opened 9 months ago

yassinedorbozgithub commented 9 months ago

Summary

When we use the find method of a service that extends SequelizeService<R, D, SP, PD> the return type is not like expected. We got an union of paginated type and not paginated type

Expected behavior

By default the feathers service return a paginated response if we don't specify the field paginated: false. So the returned type of a find method need to be paginated by default.

426 426