Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service .find() method return a wrong type (not paginated) #426

Open
yassinedorbozgithub opened this issue Jan 26, 2024 · 0 comments
Open

Comments

@yassinedorbozgithub
Copy link

Steps to reproduce

  • Create a feathers service
  • Implement the find method of a service without adding the field paginated inside the parameters
  • Check the return type of the service

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.

Actual behavior

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

System configuration

Tell us about the applicable parts of your setup.

Module versions: 7.0.3 (latest)

NodeJS version: v18.12.0

Operating System: Ubuntu 22.04.4

Browser Version: v120

React Native Version: N/A

Module Loader: N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant