HarperFast / HarperFast/rql

Wrong identifier

Open
#71 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
276
Forks
48
PR merge metrics
No merged PRs in 30d

Description

Hi,

`sum(price)=gt=3` query generates following object:

``` js
{
name: 'and',
args: [
{ name: 'sumgt', args: [ [ 'price' ], 3 ] }
],
cache: {}
}
```

Shouldn't it be like `gt(sum(price),3)`

``` js
{
name: 'and',
args: [{
name: 'gt',
args: [ { name: 'sum', args: [ 'price' ] }, 3 ]
} ],
cache: {}
}
```

Or at least it may throw exception.

Best Regards,

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.