В
Size: a a a
В
AP
В
AP
MI
comments: [{реф на другую модель - Comment.
type: Schema.Types.ObjectID,
ref: 'Comment'
}]
const dishes = await Dishes.find()в поле коментс список айдшек, в принцепе логично.
res.json({"dishes": dishes})
V
comments: [{реф на другую модель - Comment.
type: Schema.Types.ObjectID,
ref: 'Comment'
}]
const dishes = await Dishes.find()в поле коментс список айдшек, в принцепе логично.
res.json({"dishes": dishes})
.find().populate()
DG
comments: [{реф на другую модель - Comment.
type: Schema.Types.ObjectID,
ref: 'Comment'
}]
const dishes = await Dishes.find()в поле коментс список айдшек, в принцепе логично.
res.json({"dishes": dishes})
MI
MI
.find().populate()
A
D
M
A
NH
V
NH
MI
A