[08:08:51] <Robin___> Im using findOneAndUpdate, but how can I check if the record does not exist at all? http://mongodb.github.io/node-mongodb-native/3.1/api/Collection.html#findOneAndUpdate
[08:11:54] <Robin___> i see 'upsert' in options now, is that it? is upsert even a word? :p
[09:09:46] <Robin___> Derick: it seemed to do the trick :)
[09:24:09] <kenshinCH> I have an aggregation pipeline that returns two facets, like { facetA: [ {_id: 1, valA: 2.0}, ...], facetB: [ {_id: 1, valB: 4.0}, ...] }. Can I merge the two facets into something like: [ {_id: 1, valA: 2.0, valB: 4.0}, ...] ?
[20:56:06] <vwbusguy> I have an interesting issue. If I run a mongo 4.0 docker container, I can exec into it and run `mongo` and get to the shell, but if I volume mount an empty directory to /data/db, the container looks like it starts, but the `mongo` command won't connect
[20:56:31] <vwbusguy> This is all within the container itself
[20:57:40] <vwbusguy> the mongo.lock gets created and I verified the mongo user can create arbitrary files, so it's not an fs permissions problem
[23:36:49] <Aquazi> hello, I have a very very noob question. I wrote a small script in node that writes a file into a collection, and then fetches that collection
[23:37:18] <Aquazi> I've noticed tho that the doc created never appears when I read it, but only when I execute it the following time
[23:38:12] <Aquazi> thus I have this very noob question: is that the reason that even tho the insert request comes first, the collection fetch arrives and finds the outdated data?
[23:38:44] <Aquazi> I very think so because my fetch operation is not asynchronous to the insertion
[23:53:09] <NaN> with $project, how can I select specific index of an array? I tried>> foo: '$foo.0' with no result (foo is an array)