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.