<     May 2017     >
Su Mo Tu We Th Fr Sa  
    1  2  3  4  5  6  
 7  8  9 10 11 12 13  
14 15 16 17 18 19 20  
21 22 23 24 25 _2_6 27  
28 29 30 31
00:16 castlelore joined
00:26 timg__ joined
00:44 kyuwonchoi joined
00:49 Gwayne joined
00:49 Gwayne joined
00:49 jrcoco joined
00:51 Gwayne joined
01:03 pxed joined
01:05 trq joined
01:06 <trq> Is there a way to force the existence of a key within a document, and fail to insert if that key does not exist?
01:09 <Derick> trq: yes, by using validators: https://docs.mongodb.com/manual/core/document-validation/
01:11 <trq> The issue I am having is that a unique constraint is being triggered (failing) but the document is still inserted anyway.
01:12 <trq> I have a Question document which has a unique index on `variations.title`
01:13 <trq> Creating a new Question with variation containing the same title as another produces an error but inserts the document anyway. Just with an empty `variations` key.
01:13 <trq> I'll have a look at the link provided thanks Derick
01:13 <trq> I'm using Doctrines ODM, so I'll see how that can fit.
01:16 <Derick> that sounds more like a doctrine question then
01:16 <Derick> (or rather, a bug)
01:16 <trq> Yeah, it does sound like a bug.
01:17 <trq> That is how mongo indexes work though yeah?
01:18 <trq> If I have an index on an array within a document, it will still allow that document to be inserted, but the failing array will be left out?
01:18 <trq> Sorry, it's hard to explain
01:20 <trq> Hmmm, some tests in mongo shell have [proven otherwise
02:08 mdorenka joined
02:12 johnnyfive joined
02:19 harry joined
02:26 timg__ joined
02:46 gentunian joined
02:56 YoY joined
03:00 jrcoco joined
03:04 kexmex joined
03:07 fels joined
03:31 sec^nd joined
03:31 sec^nd left
03:36 joshontheweb joined
03:55 edrocks joined
04:27 timg__ joined
04:48 timg__ joined
04:48 tildes joined
04:48 timg__ joined
04:50 timg__ joined
04:51 timg__ joined
04:52 timg__ joined
05:08 fels joined
05:32 Waheedi joined
05:33 sz0 joined
05:34 lowbro joined
05:34 lowbro joined
05:47 preludedrew joined
05:51 lpin joined
05:52 timg__ joined
05:56 fels joined
06:19 lowbro_ joined
06:19 trq_ joined
06:20 sz0 joined
06:23 mdorenka joined
06:23 YoY joined
06:24 sandstrom joined
06:28 joshontheweb joined
06:39 Folkol joined
06:54 fels joined
06:54 aV_V joined
06:55 timg__ joined
06:58 Waheedi joined
06:58 rendar joined
07:02 jamiel joined
07:05 <aV_V> using spring, I would want to know why I get up to 4 connections to my mongo database?
07:05 <aV_V> https://gist.github.com/avk2/484abc45789a6daa1751f4adef6522c1
07:05 lpin joined
07:17 Folkol joined
07:20 coudenysj joined
07:24 trq_ left
07:30 irobot joined
07:31 irobot left
07:33 waller joined
07:33 sandstrom joined
07:36 dorongutman joined
07:47 <waller> hi. new to using mongodb as the primary data store. slight confusion, when the key i use for sorting has same values among a set of k documents, in what order are they returned? is this the natural order -- order in which they are stored on disk? -- is it different than the insert order for wiredTiger?
07:52 soosfarm joined
07:59 timg__ joined
08:08 gfidente joined
08:08 gfidente joined
08:17 Bdragon joined
08:25 klics joined
08:28 Folkol joined
08:42 thunfisch joined
08:44 thunfisch joined
08:52 bguery joined
08:59 bguery joined
09:04 ams__ joined
09:06 ngmvit joined
09:14 jayline joined
09:16 fels joined
09:22 Folkol joined
09:31 samwierema joined
09:33 ngmvit joined
09:35 yeitijem joined
09:47 poz2k4444 joined
09:59 edrocks joined
10:00 timg__ joined
10:08 harry joined
10:18 Folkol joined
11:02 JoWie joined
11:22 d10n-work joined
11:28 bweston92 joined
11:39 itaipu joined
12:00 Folkol joined
12:01 timg__ joined
12:13 armyriad joined
12:13 re1 joined
12:20 suman joined
12:24 kexmex joined
12:33 Folkol joined
12:38 edrocks joined
12:39 edrocks joined
12:41 harry joined
12:47 michaeldgagnon joined
12:48 bguery joined
12:58 kyuwonchoi joined
12:58 kyuwonchoi joined
13:03 sterns joined
13:04 ramortegui joined
13:09 itaipu joined
13:12 aV_V joined
13:33 bguery joined
13:34 Folkol joined
13:34 lowbro_ left
13:35 kexmex joined
13:41 samwierema joined
13:43 samwierema joined
13:46 YoY joined
13:49 numb182 joined
13:49 harry joined
13:50 <numb182> Hello
13:54 <numb182> Hello
13:54 <numb182> https://bpaste.net/show/083790a8432d ->>> I want to query this simple document with the city "New York". How do I do that? Thanks :)
14:00 geoffb joined
14:02 timg__ joined
14:03 AvianFlu joined
14:13 coudenysj1 joined
14:26 Garo_ joined
14:26 jrcoco joined
14:31 pishu joined
14:34 gentunian joined
14:52 Garo_ joined
14:53 pishu joined
14:56 neuro_sys joined
14:59 d10n-work joined
15:02 StephenLynx joined
15:04 CaptTofu__ joined
15:14 AvianFlu joined
15:15 oohnoitz joined
15:16 jaitaiwan joined
15:20 Algram[m] joined
15:22 Norrin joined
15:25 raspado joined
15:27 Aquazi joined
15:28 Kronuz joined
15:39 svm_invictvs joined
15:46 harry joined
15:48 Algram[m] joined
16:03 timg__ joined
16:12 blizzow joined
16:16 tildes joined
16:23 d10n-work joined
16:28 Lope joined
16:28 ams__ joined
16:28 <Lope> is there a simple way to hide object fields with my projection somehow?
16:28 <Lope> so I've got this in a doc:
16:29 <Lope> users: {abc123: {f:'john', l:'smith', secretInfo:1234}, def456:{f: ...
16:30 hillct joined
16:30 <Lope> I've tried using array style dot notation for the projections like {'users.f':1}, but it doesn't work.
16:30 <Lope> also tried stuff like {'users.*.f':1}
16:33 Norrin left
16:34 SkyRocknRoll joined
16:35 edrocks joined
16:48 bguery joined
16:59 kexmex joined
17:00 <Lope> it's okay, I figured out I need to use arrays of objects instead.
17:24 orbyt_ joined
17:27 samwierema joined
17:30 tildes joined
17:40 Folkol joined
17:45 dorongutman joined
18:02 Mantis_ joined
18:03 timg__ joined
18:05 Sasazuka joined
18:09 itaipu joined
18:15 MLM__ joined
18:19 gentunian joined
18:29 orbyt_ joined
18:34 edrocks joined
18:34 raspado joined
18:38 dorongutman joined
18:43 kimchy_ joined
18:57 gkze joined
19:03 dostoyevsky left
19:22 svm_invictvs joined
19:30 rendar joined
19:38 tildes joined
19:44 veebers joined
19:46 sandstrom joined
19:49 okapi joined
19:54 orbyt_ joined
19:59 heroux joined
20:10 CtrlC joined
20:10 <CtrlC> Is there anyway to have a mongo simulation or something? Like being able to run some code in a dev env without actually having mongo?
20:30 <AvianFlu> what are you most trying to avoid, in terms of not just running a local mongo?
20:39 heroux joined
20:39 dump joined
21:27 bguery joined
21:42 pxed joined
21:58 jrcoco joined
22:05 edrocks joined
22:12 acidjazz joined
22:15 orbyt_ joined
22:19 okapi joined
22:22 orbyt_ joined
22:26 beauvolio joined
22:38 kexmex joined
22:40 jrcoco joined
22:45 orbyt_ joined
23:02 druonysus joined
23:33 harry joined
23:50 druonysus joined
23:58 gentunian joined