Usage of Transform results in modification of write statement

Dear All,

I need your assistance in guidance on how to use the Transform results field.

Usually when i don't need to transform results I use:

But this time i need to filter the array and pass not all fields but only "deal_name" and "id".

Thank you!

Hi @Fedor!

What is filteredArrayTransformer returning?

I wonder if something like this could work:

{{ DealSpecification.selectedRows.map(row => _.omit(row, ['id', 'deal_name'])) }}

It uses Lodash's (a library built into Retool) omit method (Lodash docs here).

Let me know if you have any questions!