gawd-coder / MongoDB-PG

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MongoDB-PG

Hook is a function in mocha that tells it to run a section of code before it either runs test or after it

Before adding mongo hook =>

image

After adding mongo hook =>

image

Everytime we run npm run test, we are saving a new mariochar entry as mongoDB creates a new mariochar with a unique id every time it is run hence leading to many duplicates.

Finding Record by name

image

Finding Record by id which we find through Robo3t

image

Deleting and Updating Records

image

About


Languages

Language:JavaScript 100.0%