Open ThanhSonITNIC opened 7 months ago
Stats api as my recommended below or have any other solution?
// (POST) api/posts/search
{ "search": { "aggregates": [ { "type": "count", "filters": [ {"field": "published", "value": true} ] } ] } }
my wish response
{ "current_page": 1, "data": [], "from": 1, "last_page": 1, "per_page": 50, "to": 2, "total": 2, "meta": { "count_published": 1 // number of published posts } }
Aggregates are meant to be called on models effectively, i'll let this open in order to find a solution
Description
Stats api as my recommended below or have any other solution?
// (POST) api/posts/search
my wish response