Compare commits
3 Commits
fix/orders
...
master
Author | SHA1 | Date | |
---|---|---|---|
b9edd0091c | |||
|
558245f876 | ||
a927727c1b |
@ -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 () {
|
||||||
|
Loading…
Reference in New Issue
Block a user