-
Hi all, I'm trying to perform an aggregation query on a table with an interval column, but I'm getting an error. I couldn't find any info on interval aggregations in the docs github issues. Am I just missing something obvious in the example below, or can intervals not be used in Hasura's built-in aggregation utilities? ContextRunning Postgres 14.4 and Hasura 2.16.1. Table: create table test (id bigint, duration interval); Query: {
test_aggregate {
aggregate {
sum {
duration
}
}
nodes {
id
}
}
} Error: {
"errors": [
{
"extensions": {
"code": "validation-failed",
"path": "$.selectionSet.test_aggregate.selectionSet.aggregate.selectionSet.sum.selectionSet.duration"
},
"message": "field 'duration' not found in type: 'test_sum_fields'"
}
]
} |
Beta Was this translation helpful? Give feedback.
Answered by
adas98012
Jan 11, 2023
Replies: 1 comment 1 reply
-
@otonnesen |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
otonnesen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@otonnesen
We recognize this as a feature request. You'll be able to follow its status here