I am hitting discussuonlistcontroller to get recent discusiions, I want to include recent post as well.
Backend
$response = $this->api->send(ListDiscussionsController::class, $request->getAttribute('actor'), [
"sort" => "-lastPostedAt",
"limit" => "50",
"included" => "posts"
]);
But my frontend does not get posts in the included relationships.
data:
attributes: {title: "Welcome", slug: "1-welcome", commentCount: 6, participantCount: 5, createdAt: "2020-06-28T00:33:35+00:00", …}
id: "1"
relationships:
firstPost: {data: {…}}
lastPostedUser: {data: {…}}
tags: {data: Array(1)}
user: {data: {…}}
__proto__: Object
type: "discussions"
__proto__: Object
exists: true