You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
null queries should be supported but if the query is coming in through REST, which only allows strings, you will have to convert the string 'null' to the actual null value in a before hook.
It will work through a Socket.io connection without having to convert.
Steps to reproduce
I want to filter records where the column value is MySQL NULL type.
service('myservice').find({ query: { column: null } })
Expected behavior
Return all records where value is MySQL NULL type ( query.whereNull(column) )
Actual behavior
Returns nothing because knexify function is doing query.where(column, 'null')
The text was updated successfully, but these errors were encountered: