Michel
Michel
I think this is working as intended but for maybe the wrong reasons. Typically if you call `new Model(value)`, we won't make a deep copy of `value`. This is because...
@mbroadst -- If you create a document with many keys (let's say a thousand, but I'm pretty sure that a hundred is enough), v8 switch to a hash object and...
Just to be sure, you basically would like to retrieve all errors instead of the first one that happens?
So I was going to implement that a few months ago, but then code errors got on the table at RethinkDB. Looking at the tracker, it was pushed back, so...
FYI: RethinkDB 2.1 is coming with a better error hierarchy but still no codes as far as I know. So there's still some work to do here.
The best practice is sending a whitelist of error. If you want to return something better than just a 500 error, parse the error and send back your own message...
From @avimar This seems quite messy, but is the code I currently seemingly need: ``` if(err.name==="Document failed validation") message = "Number is invalid"; else if(err.message.indexOf("Duplicate primary key")!==-1) message = "Number...
You are welcome to submit a pull request.
You can use `type` in the options http://thinky.io/documentation/api/model/#hasandbelongstomany
Oh, what you want is non bidirectional n-n relations. Thinky currently doesn't support that. I think you have to sneak another table for now and use 2 hasAndBelongsToMany. Being able...