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 =>
After adding mongo hook =>
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
Finding Record by id which we find through Robo3t
Deleting and Updating Records