ujjwalguptaofficial / JsStore

Simplifying IndexedDB with SQL like syntax and promises
http://jsstore.net/
MIT License
858 stars 110 forks source link

Error: "Cannot set property 'min(datum)' of undefined" on empty db #220

Closed nielsnl68 closed 3 years ago

nielsnl68 commented 3 years ago

I'm getting this error on an empty db.

Is that as intended and should i use the "ignore" value here as well?

        let lastDate = await jsstoreCon.select({
            from: "metingen",
            where: {
                meter: ref * 1,
                //         datum: { ">": "20210505" }
            },
            aggregate: {
                min: 'datum'
            }
        });
ujjwalguptaofficial commented 3 years ago

Its a bug, will fix it in new version.

ujjwalguptaofficial commented 3 years ago

fixed in v - 4.2.2.