79170709

Date: 2024-11-08 15:52:21
Score: 2
Natty:
Report link

The best way to do it would be to put a reviews element into your bookSchema and reference the ObjectId of the review.

Then on your get route, use .populate("reviews").exec(your callback).

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Abinaya K