Cannot pass tests! MongoDB and Mongoose - Install and Set Up Mongoose

Tell us what’s happening:
My code is not passing the test. The first two tests, adding Mongoose and MongoDB as dependencies is working, but the third test (“mongoose” should be connected to a database") is not passing. I have looked at several other people’s help posts and compared my code to what people have said works for them, and it still isn’t working.

Your code so far

  "name": "fcc-mongo-mongoose-challenges",
  "version": "0.0.1",
  "description": "A boilerplate project",
  "main": "server.js",
  "scripts": {
    "start": "node server.js"
  "dependencies": {
    "express": "^4.12.4",
    "body-parser": "^1.15.2",
    "mongodb": "^3.5.7",
    "mongoose": "^5.9.9"
  "engines": {
    "node": "4.4.5"
  "repository": {
    "type": "git",
    "url": "!/project/welcome-project"
  "keywords": [
  "license": "MIT"

My password is not ‘PASSWORD’ of course, just redacted for security.



const mongoose = require('mongoose');

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36.

Challenge: undefined

Link to the challenge:

Welcome, patrick.

You are asked to add these options as the second argument to mongoose.connect:

{ useNewUrlParser: true, useUnifiedTopology: true }

Hope this helps

It worked! Where is this second argument mentioned, though? I looked at the solution and it doesn’t mention this second argument.