thinky is a lightweight node.js ORM for RethinkDB.
First you need to have RethinkDB running on your server.
Then install the thinky.io npm package into your project.
npm install --save thinky
Now import thinky into your model file.
const thinky = require('thinky)();
const type = thinky.type
...