Table and sub-aggregation buckets result

Hello! I have documents with ip and login. Every user can connecting with different ip address.
Anyway i have this query:

Result:

I need to get all ip addresses to each login like this response:

| LOGIN | IP1, IP2, IP3 ... (from buckets) |

Help me please! :slight_smile: