Retrieve the values in the array from a repeat

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.
How do I get there from the above results of my repeat on server side?

Community Page
Last updated: