O'Reilly logo
  • Yinbo Zheng thinks this is interesting:

host: '127.0.0.1',
    port: '27017',

From

Cover of Beginning Node.js

Note

Use the following code instead:
url: 'mongodb://127.0.0.1:27017',
Otherwise there would be a connection strategy not found error raised.