I am using Nodejs version 12.14.1 and Knex version 0.20.8
In Knex documentation they tell if in a where query a binding is undefined knex will throw an error. Is there a way to ignore or by pass it?
I tried using "useNullAsDefault": true,
parameter in my knex file, but it doesn't help
SQL Example
knex('accounts')
.where('login', undefined)
.select()
.toSQL()
ERROR
Undefined binding(s) detected when compiling SELECT. Undefined column(s): [login] query: select * from accounts
where login
= ?