Lint: Unnecessary @fold @transform(op: "count") @filter(op: ">", value: ["$zero"])
on "X to one" edge
#347
Labels
A-syntax
Area: query or schema syntax
C-feature-request
Category: request for new future functionality
E-medium
Call for participation: experience needed to fix: medium / intermediate
Consider this schema:
and this query:
The
@fold @transform(op: "count") @filter(op: ">", value: ["$zero"])
part can be removed without changing the query semantics at all, since:author
edge returns a maximum of one neighboring vertex.author
, the result would be discarded both with and without the fold.The text was updated successfully, but these errors were encountered: