Comments (4)
Weirdly... we already have interval
in the codebase:
pg-aggregates/src/AggregateSpecsPlugin.ts
Line 92 in 975eefb
I think the isNumberLike
detection is too narrow:
pg-aggregates/src/AggregateSpecsPlugin.ts
Line 75 in 975eefb
pg-aggregates/src/AggregateSpecsPlugin.ts
Lines 30 to 35 in 975eefb
Looks like it should be relatively straightforward to fix this; just expand to isNumberLike || isIntervalLike
(or similar).
from pg-aggregates.
Copy that! We'll submit a PR to add support.
from pg-aggregates.
V4 or V5?
from pg-aggregates.
Sorry, I should have mentioned that it's on V5.
from pg-aggregates.
Related Issues (20)
- Aggregates provide null values HOT 5
- aggregates throwing "null" all the time HOT 1
- TIMESTAMP_TRUNCATED_TO_MONTH & TIMESTAMP_TRUNCATED_TO_YEAR HOT 23
- Cannot get the given example to work HOT 3
- Filtering by totalCount HOT 3
- Getting - Error: Option 'appendPlugins' should be an array of functions, found 'object' at index 0 HOT 3
- Looks like aggregate order bys get generated even when table is omitted HOT 1
- GroupBy computed columns not generated ? HOT 4
- Aggregates ignore ordering HOT 6
- Removing limitation of stringified `keys` HOT 3
- Order by totalCount with per-query custom filtering applied HOT 2
- Aggregates can return unsafe integers HOT 8
- pg-aggregates plugin doesn't work without postgraphile-plugin-connection-filter in V5 HOT 1
- Too few types are exported in V5 plugin HOT 1
- Aggregate keys should be nullable HOT 1
- This repository needs tests
- Update docs around custom plugins for V5 HOT 5
- groupedAggregates should use their own behavior
- Supporting user-defined aggregate functions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pg-aggregates.