Skip to content

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

@alidplus

Description

@alidplus

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

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