figbird
figbird copied to clipboard
duplicated entries with combination of allPages and $in inside query with feathers api
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