1
Fork 0

javascript(mongy): fixed the readme

Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
Matei Adriel 2019-01-15 21:25:59 +02:00 committed by prescientmoon
parent 97aa8291fa
commit c587ba5431
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4

View file

@ -18,7 +18,7 @@ The next step is to create an instance of the Mongy class:
const mydb = new Mongy(); const mydb = new Mongy();
``` ```
To connect to your datebase you need to call the (async) 'connect' method: To connect to your datebase you need to call the 'connect' method:
``` ```
mydb.connect(process.env.DBURL); mydb.connect(process.env.DBURL);
``` ```
@ -38,7 +38,7 @@ async function addUser(name,email){
} }
``` ```
And then to save your model call the (async) function 'saveModel': And then to save your model call the function 'saveModel':
``` ```
async function addUser(name,email){ async function addUser(name,email){
... ...