Retrieve the values in the array from a repeat

Guys,
I have a query that returns user IDs from a repeat.
I want to display a list of comma separated user IDs in my SendMail component.
image
How do I get there from the above results of my repeat on server side?

Community Page
Last updated: