Hey guys, there is a way to receive multiple data comming from a form, not like this:
"documents" => %{
"0" => %{
"document" => "123456",
"id" => "046b6bcc-5f91-475c-8e6a-b929b1aad11e",
"issue_date" => "2020-12-15",
"issuer" => "SSCSP",
"type" => "RG"
},
"1" => %{
"document" => "123456",
"id" => "046b6bcc-5f91-475c-8e6a-b929b1aad11e",
"issue_date" => "2020-12-15",
"issuer" => "SSCSP",
"type" => "RG"
}
}
and receive a list, like this?
"documents" => [
%{
"document" => "123456",
"id" => "046b6bcc-5f91-475c-8e6a-b929b1aad11e",
"issue_date" => "2020-12-15",
"issuer" => "SSCSP",
"type" => "RG"
},
%{
"document" => "123456",
"id" => "046b6bcc-5f91-475c-8e6a-b929b1aad11e",
"issue_date" => "2020-12-15",
"issuer" => "SSCSP",
"type" => "RG"
}
]
I thought that there was a conf about that