tblobaum / mongoose-troop

plugins for your mongoose schemas.
MIT License
242 stars 29 forks source link

use of FooSchema in place of fooModel in sample code; #35

Open sangramfuture opened 11 years ago

sangramfuture commented 11 years ago
var fooModel = mongoose.model('foo', FooSchema)
  , instance = new FooSchema({ text: 'i am the batman' })

should be

  , instance = new fooModel({ text: 'i am the batman' })

The above is from #keywords, same usage is done across other plugins