mongoose-lean-id Attach id to the results of mongoose queries when using .lean() Usage const mongooseLeanId = require('mongoose-lean-id');