Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Feature Request - Summarize Batch Results #99

Copy link
Copy link
@sokulski

Description

@sokulski
Issue body actions

I'd like to propose a response for batch requests similar to the pagination response that is provided for "find" methods.

I've implemented the following as a hook and found it very useful in quickly summarizing the results of a batch request via the REST API.

[
  total: 2,
  fulfilled: 1,
  rejected: 1,
  data: {
      "status": : "fulfilled",
      "value": { /* user object returned by app.service('users').get(1) */ } 
    }, {
      "status": : "rejected",
      "reason": { /* error JSON or object with error message */ } 
    }
]

I'd like to know if this is something that would be deemed outside the scope (and solvable easily with a hook) or perhaps would this run afoul of some other Feathers ethos.

Thank you.

Reactions are currently unavailable

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.