PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Thursday the 1st of October, 2020

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[04:52:31] <Huligan> hi. is it possible to construct a field name during an aggregation?
[14:53:50] <netcrash> Hello, How can I do a select count(*) as total group by field.client.os , field.client.browser ?
[15:10:14] <netcrash> db.collection.aggregate({ $unwind : "$client" }, { $group: { _id: { os: "$os", browser: "$browser" },count: { $sum: 1 }}});
[15:55:13] <netcrash> does not work