delete masters _id #60

Merged
primakov merged 1 commits from feature/arm-master-id into master 2025-01-13 17:26:47 +03:00
Showing only changes of commit 558245f876 - Show all commits

View File

@ -11,6 +11,9 @@ const schema = new Schema({
schema.set('toJSON', { schema.set('toJSON', {
virtuals: true, virtuals: true,
versionKey: false, versionKey: false,
transform(_doc, ret) {
delete ret._id;
}
}) })
schema.virtual('id').get(function () { schema.virtual('id').get(function () {