The read
script is used to read and retrieve entries from a local JSON database based on a schema defined in dbdata.json
.
const { getEntry } = require('../helpers/read/Readdb.js');
// Get a user by ID
const user = getEntry('User', '3');
console.log(user);