how to compare text from objectid in mongo code example Example: compare mongoose id user._id.toString() === request.params.id