Skip to content
Discussion options

You must be logged in to vote

Hi @benjaminmodayil ,

db had a breaking change in a recent build due to LowDB updating to 2.0: #304

Here's the basics based on the sample code posted:

let itemsDb = await db("my-awesome-db", {
  items: ["First item"],
})

itemsDb.items.push(await arg("add an item"))
await itemsDb.write()

show(`<div>${JSON.stringify(itemsDb.items)}</div>`)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@benjaminmodayil
Comment options

Answer selected by benjaminmodayil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Errors
Labels
None yet
2 participants