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