Michel
Michel
So I'm not totally sure to understand what you mean here. You basically just want `doc.join()` which would be almost the same as `Model.get(doc.id).getJoin()`?
Also meta tables
For: ``` doc.update({f: 'g'}).then(console.log); ``` You can do ``` doc.merge({f: "g'}).save().then(console.log) ``` It's not exactly `r.table('Test').get('1').update({f: 'g'})` but close. One issue with the current proposal is that there is no...
@miksago -- What do you mean by the validations don't run?
There was a bug about `save` not triggering `validate` in case of a saved object, but it was fixed in v.1.14.2 https://github.com/neumino/thinky/issues/112 Can you check the version of thinky? And...
@simonratner -- `Model.get(doc.id).update({...})` does one unique query, no round trip. So it's pretty close to what you were looking for. I haven't implemented yet `document.update` as I would like it...
Is `Model.update` not enough?
That's technically possible now. The question is how to expose it. Here's what I have in mind ``` io.on('connection', function(socket){ Users.orderBy({index: "score"}).limit(10).changes({includeStates: true}).run().then(function(range) { socket.broadcast.emit(JSON.stringify(range.toArray())); range.each(function(patch) { // equivalent to...
Hum the API hasn't been quite nailed down so there's more work needed here.
Want to send a pull request? :)