📄️ getAll()
It will fetch all the data in the db.json file.
📄️ getById(arrayName, dataId)
Returns data that matches the id dataId in arrayName in the db.json file.
📄️ add(arrayName, data)
It performs the process of adding data to the json database.
📄️ deleteById(arrayName, dataId)
It deletes the data matching the dataId in arrayName in the db.json file.
📄️ update(arrayName, data)
Updates data matching dataId in arrayName in db.json.
📄️ filter(arrayName, condition)
Filters data in arrayName in db.json by condition
📄️ find(arrayName, condition)
In db.json, it returns the appropriate data according to condition from the data in arrayName`