mongoose-throw-unselected Throws an error whenever you access a field on a mongoose document that is not selected Usage const mongooseThrowUnselected = require('mongoose-throw-unselected');