eveningkid / denodb

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno
https://eveningkid.com/denodb-docs
MIT License
1.93k stars 129 forks source link

Some problems in model.ts #378

Open JungBinKim0913 opened 1 year ago

JungBinKim0913 commented 1 year ago

image

in model.ts,

min or max method support get a number that minimum or maximum value of some tables. but when i used that method with 'field', I could see something was wrong in value.

first, unfortunately I got NaN, that says not a number!?

secondly in this picture, the value is include prefix 'min or max'.

in my case, my field parameter is 'id' and 'plugin'

then value has 'minId', 'minPlugin', but the method returns value's 'min'

so, I think the value doesn't have 'min' therefore returns NaN

is it right?