I have two tables:
Table: Posts
Columns: id, title, body, author_id, created_at
Table: Comments
Columns: id, post_id, body, author_id, created_at
I have the following action:
action MyAction:
posts <- query @Post |> fetch
comments <- query @Comment |> fetch
I want to fetch all the posts and comments together, combine and order them by created_at in a single view. What's the best way to do it in IHP inherently?