const group = e.group(e.Foo, (x) => ({
by: { bar: x.bar },
}))
const select = e.select(group, x => ({
count:e.count(x.elements)
}))
Schema
Your application schema.
module default {
type Foo {
required property bar -> str;
}
}
Error or desired behavior
I've seen a couple of people experiencing the same on Discord and here #421, while wrapping e.group with a e.select. Autocompletion kind of works inside the expressions, but TS underlines const select = ... with an error.
Outer e.select could be pretty useful for group aggregations, and reshaping the free object output of e.group.
I've fought that some part of my schema produces the error, but this issue seems to be reproducible even with this minimal one.
Code The code causing the error.
Schema
Your application schema.
Error or desired behavior
I've seen a couple of people experiencing the same on Discord and here #421, while wrapping
e.group
with ae.select
. Autocompletion kind of works inside the expressions, but TS underlinesconst select = ...
with an error.Outer
e.select
could be pretty useful for group aggregations, and reshaping the free object output ofe.group
.I've fought that some part of my schema produces the error, but this issue seems to be reproducible even with this minimal one.
Versions (please complete the following information):
2.11+0ced62d
3.0.0-dev.913+494242f
edgedb-js
version:1.0.2
@edgedb/generate
version:0.0.7
4.9.5
18.14.0