Search / Filter data

What? More Control over what gets read? I heard you! I present to you, the .find() method! This returns a Data class

db.find({type: "Human"})
    .then((Data) => {
        console.log(Data)
        console.log(Data.result)
    })

Why a class you might ask... Why just not the result, well this is where I need you to think with me a little bit, I thought the programmer can have more control if I return a data class instead of just the result. This can simplify things when updating or removing data because you'll have more control over what gets updated. Let's see how that would work

results matching ""

    No results matching ""