Do you prefer pattern or Enum? for example :
I created func like this :
def list_struct_converter(list_params) do
[%TrangellCmsService.Cms.Db.Post{} = o | _c ] = list_params
o
end
Now , I get this like this way :
%{ title: list_struct_converter(p.cms_post).title }
by the way, although my problem is solved, but I couldn’t find correct Enum to fix my problem.






















