This is a JavaScript object-wrapper for RethinkDB documents. It provides a Document class making use of generators.
I heavily borrowed from http://knowthen.com/episode-5-creating-models-in-koajs/.
See examples/models.user.js
and test/user.js
for an example of how powerful this tool already is.
Make sure you've got io.js installed. Then install with npm install rethought
.
This package uses generators and classes, which are only available in io.js.
Run the tests with npm test
.