Database

[{"collection":"ProxyIp","count":100,"content":{"_id":{"type":"autoincrement","autoType":"int"},"ip":{"type":"faker","method":"IPv4Address"}}}]

Query

db.ProxyIp.aggregate([{"$group":{"_id":null,"ips":{"$push":"$ip"}}},{"$unset":"_id"}])

Result