Query that could not be expressed with current state of query builder:
select User {
friends: {
name
} FILTER .name = User.name
}
That's how edgedb-js solves this issue:
e.select(e.User, (user) => ({
friends: (friend) => ({
name: true,
filter: e.op(friend.name, "=", user.name)
})
}))
It creates a new closure using anonymous functions. Not sure that it is the good solution for python.
Query that could not be expressed with current state of query builder:
That's how
edgedb-jssolves this issue:It creates a new closure using anonymous functions. Not sure that it is the good solution for python.