how to compare object id in mongodb code example Example: compare mongoose id user._id.toString() === request.params.id