Ninja Parading Musically

    kodbm

    0.1.0 • Public • Published

    kodm

    Tiny ODM for MongoDB

    ko.models({
        user: {
            name: ko.String[50],
            age: ko.Number
        }
    })
     
    var instance = ko.models.user.create()
     
    instance.name = 'Joe'
    instance.age = 100
     
    instance.save()
     
    // alternately
     
    ko.models.user.create({
        name: 'Bob',
        age: 32
    }).save()
     
    ko.models.user.find({}).then(function (users) {
        // do whatever you want with users
    })
     

    I'm just getting started!

    Install

    npm i kodbm

    DownloadsWeekly Downloads

    1

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • cutejs