snaql
snaql copied to clipboard
Can a guard be applied to a 'join's sub elements?
I am trying to get this result
user_id in ('123', '456', '789')
but this fails:
user_id in {{ user_ids|guards.string|join(', ') }}
and this returns just a guard on the whole list:
user_id in {{ user_ids|join(', ')|guards.string }}
->
user_id in '123, 456, 789'