Working with multiple views

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?

Do you mean Phoenix view (asking because you are posting in the generic questions)? If so, Phoenix views are not connected to tables. You can definitely have data coming from different tables in the same view.

Did I mention view is connected to database? I think I said the map I’m receiving is have data from two different tables