Skip to content

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

@yassinedorbozgithub

Description

@yassinedorbozgithub

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions