Most efficient way to use an array of objects to query more objects – MongoDb?
If I have a controller like this: const Review = require('../models/review') const Launch = require('../models/launch') async function getReviewsByUserId (req, res) { const { userId } = req.params const reviews = await Review.find({ userId }).lean() || [] return res.status(200).send(reviews.reverse()) } How…