8000 [Suggestion] ability to allow `multi` queries for internal calls only · Issue #2546 · feathersjs/feathers · GitHub
[go: up one dir, main page]

Skip to content

[Suggestion] ability to allow multi queries for internal calls only #2546

@1valdis

Description

@1valdis
Issue body actions

Currently by default, a query like

await context.app.service('profiles').remove(null, {
  query: {
    user_id: context.id,
  },
});

won't work unless profiles service has multi option allowing multi delete. Yet, having that allowed, Feathers "authomatically" allows for multi delete external call on profiles, which is suboptimal. I think it could be useful if there were not only "true" and "false" options for multi, but also either a list of providers allowed for multi, or some other option to allow for internal multi call but disallow external one.

One could use feathers-hooks-common disable-multi-item-change conditionally with iff(isProvider(...)), but disable-multi-item-change is deprecated since feathers-hooks-common@5.0.0.

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

      0