| ... | @@ -407,6 +407,20 @@ Note that "prefetch" is a shortcut for "join", adding all columns from the joine |
... | @@ -407,6 +407,20 @@ Note that "prefetch" is a shortcut for "join", adding all columns from the joine |
|
|
|
|
|
|
|
https://metacpan.org/pod/distribution/DBIx-Class/lib/DBIx/Class/ResultSet.pm#collapse
|
|
https://metacpan.org/pod/distribution/DBIx-Class/lib/DBIx/Class/ResultSet.pm#collapse
|
|
|
|
|
|
|
|
|
# Query Count `/data/$model/$entity/query/count`
|
|
|
|
|
|
|
|
This endpoint takes the same parameter as a query but will return only the "meta" part of the query reply:
|
|
|
|
|
|
|
|
```
|
|
|
|
{
|
|
|
|
"filtered": 3,
|
|
|
|
"total": 4
|
|
|
|
"attrs": {},
|
|
|
|
"conds": { "is_active": true },
|
|
|
|
"huge_limit": 1000000,
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
# Common Mistakes
|
|
# Common Mistakes
|
|
|
|
|
|
|
|
To query for a range, do not specify a hash key twice:
|
|
To query for a range, do not specify a hash key twice:
|
| ... | | ... | |