You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I'm not sure how we could effectively store this in the store itself though. It would be a memory leak, as we would need to store this metadata for each request, and it's not clear when the data for any given request should be evicted.
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
.The text was updated successfully, but these errors were encountered: