问题
How can I query a field which is null? I get a a sql error
filter=[where][category_id][eq][null] results in
SELECT WHERE category_id'null' ORDER BY id
using latest version of loopback and loopback-connector-mysql
回答1:
You can use filter
like
/model?filter[where][category_id][eq]=null
As you see in loopback
/medias?filter[where][keywords][inq]=foo&filter[where][keywords][inq]=bar
reference link : here
来源:https://stackoverflow.com/questions/52485321/loopback-where-field-is-null