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

duplicated entries with combination of allPages and $in inside query with feathers api #14

Open
alidplus opened this issue Feb 1, 2021 · 0 comments

Comments

@alidplus
Copy link

alidplus commented Feb 1, 2021

hi there,
with feathersjs api when you try to use useFind with allPages: true, if you have a $in with your _id field:

useFind('feathers-service-name', {
  query: {
    outlet: this.state._id,
    category: { $in: mc.data.map(m => m._id) },
    $sort: "sortKey"
  },
  allPages: true
})

it loads duplicated entries inside data

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