Update readme for MongoDB

pull/358/head
Andrew Molchanov 2020-11-27 02:31:29 +03:00
parent ddabb1187f
commit 06577a4e01
No known key found for this signature in database
GPG Key ID: 7C75AA362C5C27FC
1 changed files with 3 additions and 2 deletions

View File

@ -165,11 +165,12 @@ Once you've done that, your config section should look like:
``` json
{
"type": "mongodb",
"connectionUrl": "mongodb://localhost:27017/database"
"connectionUrl": "mongodb://localhost:27017",
"connectionName": "database"
}
```
You can also just set the environment variable for `DATABASE_URL` to your database connection url.
You can also just set the environment variable for `DATABASE_URL` to your server connection url and `DATABASE_NAME` for your database name.
Unlike with postgres you do NOT have to create the table in your mongo database prior to running.