I have a view which is returning a map. But map has some parameter which is associated with another table. So suppose I have a post view and user view.
Now post is associates with user. So I want to return a json which will have both parameters post parameter and user parameter.
%{
id: 1
post_name: "something",
owner: {
user_id: 1
name: "max"
}
}
how can I call another user parameter in post_view?