From 06577a4e01b538f17a0494b422a90bcb01f64f5e Mon Sep 17 00:00:00 2001 From: Andrew Molchanov Date: Fri, 27 Nov 2020 02:31:29 +0300 Subject: [PATCH] Update readme for MongoDB --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b42c844..8737ee1 100644 --- a/README.md +++ b/README.md @@ -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.