Read

Overview

The read script is used to read and retrieve entries from a local JSON database based on a schema defined in dbdata.json.

Usage

const { getEntry } = require('../helpers/read/Readdb.js');

// Get a user by ID
const user = getEntry('User', '3');
console.log(user);
Table of Contents