Rethinkdb thinky export model

189 views Asked by At

Im currently trying to export a model on nodejs using thinky(rethinkdb orm). I separate my models in different files for more clarity. The pattern goes likes this.

var modelA = think.createModel ... 
//API methods   
exports.list = ...
exports.add = ...
exports.delete = ...
exports.update = ...
exports.get = ...
exports.model = modelA

On my app.js (main file) everything works great but when on modelB I want to export the require statement returns an empty object.

This is bugging me.

0

There are 0 answers