Any other query method beside select merge for multiple selects

I read about select merge to build a query bit by bit and add it in the select and at the end we got a map with multiple select fields like this.

    from p in Post, select: %{title: p.title, visits: p.visits}

Is there any other method beside that to achieve this in ecto.

Thanks.

What are you referencing? What are you wanting to do that select_merge does not?

1 Like