Aggregate first the full resource instead of some field
I have a property resource that can contain offers.
When I'm fetching the property, I want to also fetch the current offer from the actor if there is one.
Right now, I have this:
But this will not work since the first aggregation requires me to select a field from
Is there some way for me to do this with aggregates?
When I'm fetching the property, I want to also fetch the current offer from the actor if there is one.
Right now, I have this:
But this will not work since the first aggregation requires me to select a field from
:offers, but I want it to actually select the whole offer.Is there some way for me to do this with aggregates?
