Not Particularly Meaningful
    Have ideas to improve npm?Join in the discussion! »

    fendjs-model-mongo

    0.0.1 • Public • Published

    fendjs-model-mongo

    Build Status Coverage Status NPM version Dependency Status

    MongoDB model plugin for Fend.js

    Usage

    var Modeler = require('fendjs-model');
    var Mongorable = require('fendjs-model-mongo');
     
    Modeler.use(Mongorable('mongodb://localhost/test'));
     
    var Pet = Modeler('Pet')
      .attr('id')
      .attr('name');
     
    var pet = new Pet({ name: 'Tobi', species: 'Ferret' });
    pet.save(function (err, res) {
      if (err) {
        // Error something todo ...
        return;
      }
      // Something todo ...
    });

    API

    TODO:

    Testing

    $ npm install
    $ make test
    

    License

    MIT license.

    See the LICENSE.

    Bitdeli Badge

    Keywords

    none

    Install

    npm i fendjs-model-mongo

    DownloadsWeekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • avatar