node-mongodb-fixtures
Version:
A package and CLI for MongoDB fixtures
22 lines (20 loc) • 355 B
JavaScript
// use js modules to programmatically manipulate fixture data
var ObjectId = require('mongodb').ObjectID;
module.exports = [
{
_id: ObjectId(),
name: 'Carmine',
address: {
city: 'Boston',
state: 'MA',
},
},
{
_id: ObjectId(),
name: 'Jimmy',
address: {
city: 'Denver',
state: 'CO',
},
},
];