Marshall Cottrell

Results 133 comments of Marshall Cottrell

> I don't really want to change the default because that could break people... Agreed, it shouldn't be the default, but I think it makes complete sense under `enforce_type:strict`.

@mwielbut this is a pretty neat idea. In the meantime, I think a `group` could get you pretty close to what you want. ``` js .getJoin({ employees: { _apply: function(sequence)...

@neumino a third option would be to continue validating when retrieving, but only validate the fields that come back. **[edit]:** not sure how you would handle virtual fields in that...

I quite like this idea! A couple more things to consider: - maybe avoid having to call `.run()` i.e. `Users.get(1).changes().bind(socket)`? - specify which channel events are broadcast on `doc.bind(socket, {...

> would you use `filter` instead of `getAll` knowing that filter will be transformed in a `getAll`? @neumino sorry for the delay in following up with this, but yes absolutely!...

Also, in terms of the overall direction here I think optimizations like these are a completely reasonable and often expected feature of ORMs. I agree with @fenos that by explicitly...

Hey, @neumino I'm trying to work on this, but I'm having trouble with `resultFormat:binary`. I tried resolving the promise with: ``` js { $reql_type$: 'BINARY', data: new Buffer(response).toString('base64') } ```...

If you wanna have a look, I just pushed up my changes here: https://github.com/marshall007/reqlite/tree/http-options

Oh, nevermind. It's because `request` assumes `utf8` encoding by default.

@cur3n4 `this` already refers to the document in the context of virtual field functions.