readData
Read all data in a database
const { LocalServer, getLocalServer, saveData } = require('naturesaving');
const ExampleSchema = require('path-to-schema') // The path to your schema
const server = new LocalServer({ name: 'Example', path: './database' });
const allData = readData({
server: server,
schema: ExampleSchema
)};Last updated