During the past few years an option #withProperty: was added as a terminal option for scoping queries in MooseQuery DSL.
It allows to select a parent or child of the entity depending on a block returning a boolean instead of a type we provide.
This makes sense also on navigation queries. Maybe we should add it also?
If we do, we should update MooseQuery comment and the documentation (there are none currently but I'm writing an article right now so we will soon have one)
During the past few years an option #withProperty: was added as a terminal option for scoping queries in MooseQuery DSL.
It allows to select a parent or child of the entity depending on a block returning a boolean instead of a type we provide.
This makes sense also on navigation queries. Maybe we should add it also?
If we do, we should update MooseQuery comment and the documentation (there are none currently but I'm writing an article right now so we will soon have one)