Closed jackfischer closed 9 months ago
I think this one is actually OK. You just need a leading dot on your by
:
group(
select ActivitySource.<context[is AuditLog].user {id_:=.id}
) by (.id_);
or if you define your alias in using
instead, you can forego the leading dot:
group(
select ActivitySource.<context[is AuditLog].user
) using id_ := .id by (id_);
Feel free to re-open if I've missed something here.
Ahhhhh I misinterpreted this as somehow an error coming out of postgres from a corrupt query. EdgeDB also has the concept of using
.
Steps to Reproduce:
UnsupportedFeatureError: may not group by a field named id
Hint: try 'using id_ := .id'
Schema: