Skip to content

No config file found, use defaults #2

@redoc123

Description

@redoc123

I updated src/config/index.js mongodb block as follows:

mongodb: {
doc: 'URL to mongodb.',
format: String,
default: 'mongodb://localhost:27017/koapi',
env: 'MONGO_URI'
}

Start up gives the following:

mongodb://localhost:27017/koapi -Failed to connect to Database. Error - TypeError: Cannot read property 'databaseName' of undefined

please suggest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions