0.0.11 • Published 9 months ago

objy-mapper-mongodb v0.0.11

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

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.

0.0.11

9 months ago

0.0.10

10 months ago

0.0.9

11 months ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

2 years ago

0.0.3

2 years ago

0.0.4

2 years ago

0.0.1

3 years ago