Feature request: Support aggregate(count, max, min...) in where clause
See original GitHub issueCurrently, there’s no support for aggregate fields in where
and order_by
clause, which means it’s impossible to do filtering on aggregation.
Suggestion: Support aggregated fields on where and order_by clause when we query from a table_aggregate
.
Example:
query {
users_aggregate {
aggregate(where: {count: {_gt: 0} })
{
count
}
}
}
or
query {
users_aggregate(where: {aggregate {count: {_gt: 0} }}) {
aggregate
{
count
}
}
}
Issue Analytics
- State:
- Created 5 years ago
- Reactions:131
- Comments:45 (8 by maintainers)
Top Results From Across the Web
SQL MIN and MAX Functions Explained in 6 Examples
Like MIN() , MAX() is an aggregate function that returns a numeric value from a set. The difference is that it returns the...
Read more >Aggregate function in SQL WHERE-Clause - Stack Overflow
firstname , ( SELECT MIN( o.amount ) FROM orders o WHERE a.customerid = o.customerid AND COUNT( a.customerid ) > ...
Read more >SQL Server MAX() aggregate function
SQL MAX() aggregate function is used to return the maximum value from the provided numerical expression or the highest value in the collating ......
Read more >Aggregation, grouping, and summarizing (Concepts) - Prisma
Use Prisma Client to aggregate, group by, count, and select distinct. ... having filters entire groups and supports filtering on an aggregate field...
Read more >Aggregate Functions | SOQL and SOSL Reference
Use aggregate functions in a GROUP BY clause in SOQL queries to generate reports for analysis. Aggregate functions include AVG() , COUNT() ,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
hey folks, thanks for your interest and patience with this! The team’s actively working on this feature and a demo of WIP will be available in August’s community call recording.
+1 here
I need this feature please.