flarum / flarum/issue-archive

JS/Frontend app.store multi response sets should be collections

Open
#5 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

## Feature Request

It would be great if we can make result sets collections. So that we not just get an array of objects, but also their respective meta data and possible helper functions.

**Is your feature request related to a problem? Please describe.**

The problem right now is that if you return meta information like pagination counts etc, this information is dropped while pulling objects from the store.

**Describe the solution you'd like**
It would be cool pushing the data into a collection that also supports meta information.

**Justify why this feature belongs in Flarum's core, rather than in a third-party extension**

Only core has a store and handles the api requests using `app.request`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.