Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including resourceful-mongo with all npm packages installed. Try it out:

var resourcefulMongo = require("resourceful-mongo")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

resourceful-mongo v0.0.3

resourceful mongodb engine

#resourceful-mongo Build Status

A MongoDB engine for resourceful, a datamapper part of the flatiron project.


Ryan Fitzgerald, Follow @TheRyanFitz on Twitter.


This project is in a very early stage, with limited functionality. Don't use in production.


  var resourceful = require('resourceful-mongo');
  var Person = resourceful.define('person', function () {
    // Specify use of the mongodb engine
    this.use('mongodb', {
      database: 'flatiron_test', //required - databasename which contains collections
      collection: "people", // required - the collection to use for this resource
      safe : true // optional - run the driver in safe mode to ensure that the update succeeded. Defaults to false


Installing npm (node package manager)

  $ curl | sh

Installing resourceful

  $ [sudo] npm install resourceful-mongo


All tests are written with mocha and should be run with npm:

  $ npm test

Author: Ryan Fitzgerald

License: Apache 2.0

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free