The listByMaker controller method will query the Game collection in the database to get the matching games.
mern-vrgame/server/controllers/game.controller.js:
const listByMaker = (req, res) => { Game.find({maker: req.profile._id}, (err, games) => { if(err) { return res.status(400).json({ error: errorHandler.getErrorMessage(err) }) } res.json(games) }).populate('maker', '_id name')}
In the query to the Game collection, we find all the games where the maker field matches the user specified in req.profile.