[03:58:54] <baegle> Can't figure out how to take the result of a query and turn it into an array of ID values. Anyone know how? I'm looking to get ["51972123", "51973125"] instead of [{_id:ObjectId("51972123")}, {_id:ObjectId("51972125")}]
[04:03:38] <baegle> got it with a custom function. Here it is:
[04:03:46] <baegle> function newprocess(collection) { var x = new Array(); collection.forEach(function(y){x.push(y._id.str);}); return x; }
[09:00:33] <blaizco> I have a replicaset and I am using it in PHP and is working fine. But, sometimes the driver can't find any candidates. If i refresh the page the problem is solved, so this is random. Any taughts about what may happening?
[10:49:27] <Mech0z> whats wrong with this python http://pastebin.com/pT3i3uy8 it just prints nothing, I am trying to get the number of comments from each auther of a comment to a post