Calculation that returns a list of strings

I have the following calculation:

calculations do
    calculate :trigram, :list, expr(fragment("show_trgm(?)", first_grantee_full_name))
  end

This calculation will call show_trgm which returns an array os strings, but calculate don’t support the list type, so this calculation doesn’t work. Is there any way for me to write this calculation that would return the correct data?

{:array, :string} is the type you are looking for :slight_smile:

1 Like

I can’t believe I didn’t thought of trying that :sweat_smile: