ons prefetched.
#
my @books = author($id)->books->prefetch('edition')->all
# send a JSON-encoded list of hashrefs of authors with first names
# that start with 'John' and their wor
end framework
# (Some, like DevExtreme, do not cope well with the objects.)
#
send_as JSON => [ authors->like( 'first_name', 'John%')->prefetch('books')->hri->all ];
There are many really