adrai/node-viewmodel — pull request #2 by jamuhl (2014-07-04 11:24:33+00:00)
Title: allow indexes on mongodb

var repository = require('viewmodel').read
, _ = require('lodash');

module.exports = repository.extend({

collectionName: 'contact',
indexes: [
{profileId: 1},
// or:
{ index: {profileId: 1}, options: {} }
],