Loopback neq: null

Bunker picture Bunker · May 15, 2015 · Viewed 14.2k times · Source

I'm trying a query on a postgres database through the loopback api explorer:

{"where": {"archived_at":{ "neq": null }}}

However, I only get results where archived_at is null?

Answer

Peter Andreas Moelgaard picture Peter Andreas Moelgaard · Aug 23, 2015

The following query worked for me...

{ "include": [ "currency" ], "where": { "currencyCode": { "neq":  null } } }

I was requesting tables that had a currencyCode...

(Sorry for the poor quality of my response, I just wanted to share, even I didn't have a straight answer to the OG's question, and I don't have enough props to comment)