Closed maanp closed 2 years ago
`const todos = db.get('todos').value() let index = 1; todos.forEach(todo => { const todoText =
${index++}. ${todo.title}`
console.log(todoText)
@maanp I don't think db.get
exists, maybe you're confusing it with the lodash chain
example?
@luukdv See this example: Discord Bot . Use db.get(message.guild.id) to store an id
@DarkestSeconds Those examples use an older version of lowdb
. See https://github.com/typicode/lowdb/releases/tag/v2.0.0 for migration info.
Thank you @luukdv
Hey I am trying to get my data in db.json using db.get() but I can't do it? can you help me?