Thanks you @ppp225, that’s a cool solution! I was not really aware of how @cascade works.
And you are right, I was also looking for a way to do something like
@filter(eq(dict.shortName, "value"))
or even
@filter(eq(dict.someOtherNode.evenDeeperNode.someValue, "value")).
It just would seem natural for me to be able to define constraints traversing any direction in the graph. (Although not a graph database, but such things can be nicely done in Hasura).
I also wonder how efficient @cascade is, but probably more efficient than a var with millions of uids.