noid

0.0.2 • Public • Published

Noid

Noid is an ODM (object document mapper) for MongoDB and Node.js written in CoffeeScript.

Example

class Person extends Document
  
  @storeIn 'people'

  @field 'name'
  @field 'title'

Person.create { name: 'Chris }

Person.findFirst { name: 'Chris' }, (error, person) ->
  console.log person.name()

Documentation

npm install noid

See the integration specs for now...

About

Noid intends to provide a clean way to setup mappings (intended to be created in CoffeeScript, though not required). It is obviously inspired by Mongoid and the api will likely mirror that of Mongoid's, barring any idiomatic deviations.

Credits

Chris Gibson chrislgibson at gmail dot com

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i noid

    Weekly Downloads

    6

    Version

    0.0.2

    License

    none

    Last publish

    Collaborators

    • chrisgibson