getAll()
It will fetch all the data in the db.json file.
Fetch all data
const dbcopycat = require('dbcopycat');
const data = dbcopycat.getAll();
console.log(data)
It will fetch all the data in the db.json file.
const dbcopycat = require('dbcopycat');
const data = dbcopycat.getAll();
console.log(data)