UNPKG
node-mongodb-test2
Version:
latest (3.2.10)
3.2.10
A package and CLI for MongoDB fixtures
github.com/cdimascio/node-mongodb-fixtures
node-mongodb-test2
/
examples
/
fixtures
/
people_.js
6 lines
(5 loc)
•
192 B
JavaScript
View Raw
1
2
3
4
5
6
module
.
exports
=
function
(
collection
) {
// create an index (or do other work)
// Be sure to return a Promise
return
collection.
createIndex
( {
"address.city"
:
1
}, {
unique
:
false
} ); }