MokoJs / moko

Generator powered models
51 stars 3 forks source link

Documentation does not appear to work #10

Closed DylanPiercey closed 9 years ago

DylanPiercey commented 9 years ago
User
  .use(validators)
  .use(mongo('localhost:27017/moko-test'));

Throws:

node_modules/moko/lib/builder.js:49
    else plugin(Moko);
         ^
TypeError: object is not a function

To get it to work you must first yield moko-mongo.

rschmukler commented 9 years ago

Resolved this. Thanks!