UNPKG

mongoose-lean-id

Version:

Attach `id` to the results of mongoose queries when using `.lean()`

8 lines (5 loc) 132 B
'use strict'; const mongoose = require('mongoose'); before(function() { mongoose.connect('mongodb://127.0.0.1:27017/test'); });