As was mentioned earlier, it's possible to follow a link
backwards by using the .<
instead of .
. When doing
that it's also necessary to specify the type of the
object at the start using [IS SomeType]
. This can be
used in a filter as well. For example, to get all those
who posted a photo, try:
The filter expression must evaluate to some boolean
value or a set of boolean values for each element of the
filtered set. If it evaluates to a set of booleans all
objects that have at least one true
value in their
filter expression set will be included. This is why
filtering by hashtags can be done like this:
...or like this:
You can use more complex expressions to filter the results. The only condition is that the it should be possible to evaluate these expressions for each element (typically an object) of the filtered set. Try the following query for selecting posts that mention "EdgeDB" in the title and use "database" as a hashtag: