PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Sunday the 2nd of December, 2018

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[13:26:07] <madprops> hi is there way to tell mongo (in node) to findOne and get all fields except some?
[13:39:02] <madprops> im sending { name: true, version: true }
[13:39:02] <madprops> to "fields" yet it returns everything
[14:39:16] <madprops> nvm i figured it out
[15:19:59] <kempo> how can i group for a field and then count how often that field appaers in a collection
[15:22:28] <kempo> ah i got it. aggregate, then group and sum :)
[15:27:34] <Derick> kempo: I think there is a shortcut in aggregation for that now
[15:28:46] <Derick> kempo: sorry, I was thinking of https://docs.mongodb.com/manual/reference/operator/aggregation/sortByCount/
[18:37:35] <quarters> is the use of flatter data entries preferred over deep hierarchical ones in mongodb?
[18:37:56] <quarters> even if there is redundancy
[18:38:24] <Derick> possibly :)
[20:08:28] <kempo> how do i count a aggregate function?
[20:08:37] <kempo> i need to know how many results came back
[20:17:47] <Derick> { '$group' : { _id: null, sum: { $add: 1 } } }