eveningkid / denodb

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno

Home Page:https://eveningkid.com/denodb-docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Some problems in model.ts

JungBinKim0913 opened this issue · comments

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?