objy-mapper-mongodb

0.0.6 • Public • Published

OBJY storage mapper for mongodb

Installing

npm install objy-mapper-mongodb

Example

Let's create an Object Family that uses the mapper:

const MongoMapper = require('objy-mapper-monodb');

// Define an object family
OBJY.define({
   name : "Object",
   pluralName: "Objects",
   storage: new MongoMapper().connect('mongodb://localhost'),
})

// Use the object family's constructor
OBJY.Object({name: "Hello World"}).add(function(data)
{
   console.log(data);
})

License

This project itself is licensed under the MIT License.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.6
    20
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.6
    20
  • 0.0.5
    0
  • 0.0.4
    0
  • 0.0.3
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i objy-mapper-mongodb

Weekly Downloads

20

Version

0.0.6

License

MIT

Unpacked Size

14.4 kB

Total Files

4

Last publish

Collaborators

  • marcoboelling