Closed sandros94 closed 6 months ago
Via REST API the count(field) returns a string.
count(field)
In the following screenshot I was requesting for:
id
name
table
count(answers)
active
use count(field) via postman/hoppscotch/httpie
v10.6.2 & v10.8.2
Self-Hosted (Docker Image)
I'm 85% sure that's on purpose as it's a bigInt
Aggregation functions like count() indeed return bigInt types hence the string response. https://www.postgresql.org/docs/15/functions-aggregate.html
count()
Describe the Bug
Via REST API the
count(field)
returns a string.In the following screenshot I was requesting for:
id
name
table
count(answers)
active
To Reproduce
use
count(field)
via postman/hoppscotch/httpieDirectus Version
v10.6.2 & v10.8.2
Hosting Strategy
Self-Hosted (Docker Image)