Mapping an array output to a Filter

I have a Fastfield “watch form submissions” module, there’s a section from the output bundle that is named Alerts which is an array.

The value for code can either be “Yes” or “No”

Fastfield - Alert

But when I try to map that to a filter, I can’t seem to access the data. I basically want to create a filter that checks if the code value equals Yes.

Filter - Mapping

Update:

So I have used the map() function to filter the value of “code” using the following:

Is this the ideal way to approach it?

I have tested the scenario and it now runs successfully for both use cases.