var crm_pixel_Schema = new Schema({
_id: mongoose.Schema.Types.ObjectId,
parent_id: {type: Schema.Types.ObjectId, ref: 'category'},
name: String,
desc: String,
order: Number
})
pModel.findOne()
.sort({order: -1})
.select({_id: 1, order: 1, parent_id: 1})
.where('`_id` = `parent_id`') <=== как вот тут?
.exec()