sum() column function not working properly
Open
- Dominant language
- JavaScript
- Stars
- 128
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
I am trying to get the sum of a column but it's not working properly. it returns an array of rows rather than a single value. My code looks like this:
```js
pendings.find()
.select(function (column) {
return column('amount')
.sum();
})
.all()
.then(function (models) {}):
```
Contributor guide
Assessment
This issue has not been assessed yet.