Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/davidguttman/mongo-collection

A very lazy way to get a mongo collection with mongoskin
https://github.com/davidguttman/mongo-collection

Last synced: 5 days ago
JSON representation

A very lazy way to get a mongo collection with mongoskin

Awesome Lists containing this project

README

        

# Mongo Collection #

You should probably never need this, but I use it because I can never remember / can't be bothered to remember how to get a collection using Mongoskin.

## Usage ##

var mc = require('mongo-collection');

var dogsCollection = mc('localhost', 'animals-db', 'dogs');

dogsCollection.find(...) // etc...