how to compare 2 objectid in if statement expressjs code example Example: compare mongoose id user._id.toString() === request.params.id