Calculation returning array of strings
I have a calculation that returns an array of strings.
But when I load this calculation, I get back only 2 results from the query. The first has "hello" and the other "world".
Why don't I get all query results instead of the first 2 with each of them having the full list?
Solution:Jump to solution
```elixir
calculations do
calculate :namevariations, {:array, :string}, fn records, ->
Enum.map(records, fn _ -> ["hello", "world"] end)
end...
3 Replies
calculations take lists of records and return lists of records
Solution
Thanks