What does "reference to ... changes the interpretation of ... elsewhere in the query" mean in context of ordered properties? #1854
-
|
I felt like the message isn't explicit about 'elsewhere', since I still can't see what it is changing. Here is the query and schema; I have a select, within a select at this line, I get that error; If I remove |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
The error message and the diagnostics need work, for sure. Here's what's going on. In EdgeQL, path expressions are lookups on a graph of objects. So, when you write To illustrate, imagine you have this object graph: Then, So what you want instead here is to iterate over the Now, you might object that |
Beta Was this translation helpful? Give feedback.
The error message and the diagnostics need work, for sure.
Here's what's going on. In EdgeQL, path expressions are lookups on a graph of objects. So, when you write
Call.args, you mean "give me a set ofargumentsobjects that is reachable from a given set ofCallobjects via theargslink".To illustrate, imagine you have this object graph:
Then,
Call.argswould return a set of two elements{arguments1, arguments2}. But here there are three links pointing to the two objects. And so if you attempt to sort the result set by a link property, there is no meaningful way to perform that…