figbird icon indicating copy to clipboard operation
figbird copied to clipboard

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

Open alidplus opened this issue 5 years ago • 0 comments

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

alidplus avatar Feb 01 '21 09:02 alidplus