00:18:00  * jblzjoined
00:20:23  * jblzquit (Read error: Connection reset by peer)
00:20:52  * jblzjoined
01:00:43  * jblzquit (Quit: leaving)
01:01:55  <jongleberry>i'm working on https://github.com/mongodb-utils/mongodb-next, but that's not really a orm
01:01:59  <jongleberry>just a better mongodb driver
01:03:15  <TheAceOfHearts>gotcha :p
01:32:57  * nam-shub_joined
01:37:10  * nam-shubquit (Ping timeout: 264 seconds)
01:39:07  * bmacjoined
01:54:08  * basicdaysjoined
02:05:49  * jblzjoined
02:07:02  * jblzquit (Client Quit)
02:11:40  * wilmoorequit (Ping timeout: 260 seconds)
02:20:55  * bmacquit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
02:21:50  * feelfinejoined
02:25:46  * wilmoorejoined
03:11:20  * mhernandez1joined
03:20:33  * joshonthewebjoined
03:25:29  * mhernandez1quit (Remote host closed the connection)
04:47:42  * ajk27quit (Remote host closed the connection)
04:48:09  * ajk27joined
05:09:58  * joshonthewebquit (Quit: Computer has gone to sleep.)
05:43:06  * LeXXikjoined
06:20:55  * feelfinequit (Remote host closed the connection)
06:23:31  * feelfinejoined
06:30:44  * kievechuajoined
06:53:46  * kievechuaquit (Quit: kievechua)
06:56:27  * wilmoorequit (Ping timeout: 256 seconds)
07:09:00  * wilmoorejoined
07:21:56  * feelfinequit (Remote host closed the connection)
07:28:02  * LeXXikquit (Quit: Leaving)
07:42:28  * LeXXikjoined
07:54:45  * sojjoined
08:20:34  * kievechuajoined
08:40:12  * stagasjoined
09:10:41  * joshonthewebjoined
09:17:41  * kazuponjoined
09:25:59  * shesekquit (Ping timeout: 272 seconds)
09:41:21  * wilmoorequit (Ping timeout: 256 seconds)
10:00:01  * nam-shub_quit
10:25:03  * stagasquit (Ping timeout: 240 seconds)
10:25:33  * LeXXikquit (Remote host closed the connection)
10:34:02  * kazupon_joined
10:37:11  * kazuponquit (Ping timeout: 255 seconds)
10:40:13  * kazupon_quit (Remote host closed the connection)
10:40:41  * kazuponjoined
10:45:12  * kazuponquit (Ping timeout: 245 seconds)
10:45:41  * kazuponjoined
11:03:06  * TheAceOfHeartsquit (Quit: Leaving.)
11:05:11  * kazuponquit (Remote host closed the connection)
11:45:23  * henn1nkjoined
11:51:47  * shesekjoined
12:01:29  * mhernandez1joined
12:02:00  * henn1nkquit (Ping timeout: 260 seconds)
12:03:23  * henn1nkjoined
12:04:28  * kievechuaquit (Quit: kievechua)
12:06:26  * kievechuajoined
12:18:17  * henn1nkquit
12:22:22  * jblzjoined
12:32:52  * jblzquit (Quit: leaving)
12:46:09  * mhernandez1quit (Remote host closed the connection)
13:28:10  * roymilohjoined
14:11:53  * nam-shubjoined
14:15:02  * kievechuaquit (Quit: kievechua)
14:21:44  * mhernandez1joined
14:34:17  * henn1nkjoined
14:47:27  * henn1nkquit
15:02:33  * mhernandez1quit (Remote host closed the connection)
15:07:59  * henn1nkjoined
15:41:34  * henn1nkquit
15:52:19  * roymilohquit (Remote host closed the connection)
16:01:39  * feelfinejoined
16:09:58  * bmacjoined
16:25:46  * mhernandez1joined
16:27:46  * roymilohjoined
16:37:01  * roymilohquit (Ping timeout: 250 seconds)
16:39:30  * mhernandez1quit (Remote host closed the connection)
16:50:02  * mhernandez1joined
16:59:01  * henn1nkjoined
16:59:10  * bmacquit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
17:06:56  * bmacjoined
17:07:15  <henn1nk>hello, is still monk the preferred mongodb driver for koa?
17:09:07  * mhernandez1quit (Remote host closed the connection)
17:09:21  * roymilohjoined
17:46:11  * shesekquit (Ping timeout: 264 seconds)
17:48:39  * boredzjoined
19:00:40  * bmacquit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
19:08:34  * sojquit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
19:08:58  * sojjoined
19:43:20  * bmacjoined
20:07:04  * feelfinequit (Remote host closed the connection)
20:08:15  * boredzquit (Ping timeout: 255 seconds)
20:11:16  * feelfinejoined
20:48:37  * TheAceOfHeartsjoined
21:09:53  * roymilohquit (Ping timeout: 255 seconds)
21:18:09  * wilmoorejoined
21:32:48  * feelfinequit (Remote host closed the connection)
21:35:55  * feelfinejoined
21:51:31  * mhernandez1joined
22:24:35  * bmacquit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
23:22:41  * joshonthewebquit (Ping timeout: 240 seconds)
23:22:59  <jongleberry>i'm working on https://github.com/mongodb-utils/mongodb-next if you're interested in that
23:29:51  * mhernandez1quit (Remote host closed the connection)
23:33:28  <henn1nk>jongleberry: puh what is the advantage of it in comparison of monk? :)
23:33:42  <jongleberry>hmmm i should add that
23:33:44  <jongleberry>off the top of my head
23:33:53  <jongleberry>seamless streams2 support
23:34:23  <jongleberry>will eventually use native promises, but uses bluebird for now (just need to remove two dependencies for that to happen)
23:34:31  <jongleberry>mongodb 2.6+ support, i.e. aggregations and bulk writes
23:34:33  * delamanpart
23:34:54  <henn1nk>jongleberry: oh nice
23:35:08  <jongleberry>but it just wraps, so you need to connect to the db yourself and stuff
23:35:10  <jongleberry>might add that in later
23:35:20  <jongleberry>just trying to lower my app's SLOC
23:37:32  * joshonthewebjoined
23:38:25  <henn1nk>jongleberry: what i am missing in monk etc... validation?
23:38:51  <jongleberry>not sure
23:38:54  <jongleberry>i don't know what monk does
23:38:57  <jongleberry>seems just like a similar wrapper
23:39:40  <jongleberry>i don't think monk does validation
23:39:57  <henn1nk>jongleberry: jepp it doesnt
23:40:22  <henn1nk>jongleberry: i liked mongoose, but it seams stillt not fit with koa
23:40:30  <jongleberry>it returns promises as well, no?
23:40:41  * wilmoorequit (Ping timeout: 240 seconds)
23:40:42  <jongleberry>it's personally too much of an abstraction for me
23:40:52  <jongleberry>if i use an ORM, might as well use postgres
23:41:03  <henn1nk>hehe
23:41:24  <henn1nk>jongleberry: i'm to new at mongodb, maybe this is my main problem
23:41:36  <jongleberry>maybe
23:41:53  <jongleberry>i think learning mongodb is easier than sql though, especially with javascript
23:41:59  <jongleberry>since you don't need an ORM and you don't have to learn joins
23:42:05  <jongleberry>but as you learn more, it gets more WTF
23:42:33  <henn1nk>jongleberry: do you know nice docs for me learning direct mongodb stuff?
23:42:38  <jongleberry>no idea
23:42:42  <jongleberry>i just read the mongodb-native docs
23:43:17  * wilmoorejoined
23:44:29  <henn1nk>jongleberry: do you use your wrapper direct in koa routes? or do you write first models? (is a practical question)
23:46:42  <jongleberry>return a "query" without executing it
23:46:50  <jongleberry>then to stream it, do `this.body = query`
23:46:58  <jongleberry>or for an array, `var docs = yield query`
23:47:09  <jongleberry>where `var query = db.find().readPreference()`, etc.
23:47:38  <henn1nk>jongleberry: ok so you don't write first mongo db "models" to have a cooking book :)
23:47:41  <jongleberry>for `this.body = query`, you'll need an object stream middleare like https://github.com/koajs/json
23:47:56  <jongleberry>oh you mean for creating objects?
23:48:04  <henn1nk>jongleberry: jepp
23:48:08  <jongleberry>i keep that entirely separate from the koa
23:48:31  <jongleberry>`var User = require('../lib').User; var user = yield User.create(parse(this));`
23:48:33  <jongleberry>something like that
23:48:52  <jongleberry>put all your validation in `User.create()`
23:48:56  <henn1nk>jongleberry: and how would your User model look like?
23:49:09  <jongleberry>oh that depends on your app
23:49:21  <henn1nk>jongleberry: just as a starting point
23:49:58  <jongleberry>i usually have a constructor like `function user(obj) { this.name = obj.name})`
23:50:09  <jongleberry>and have `User.create()` do the validation
23:50:27  <henn1nk>jongleberry: but the create method would use your mongodb wrapper?
23:50:50  <jongleberry>User.create = function* (obj) { if (obj.name.length > 30) throw new Error('name too long!'); return yield db.users.insert(new User(obj))};
23:50:51  <jongleberry>yeah
23:51:08  <henn1nk>ah ok :)