Logan_B
Logan_B

Reputation: 527

Sails Waterline Query Null Value

I am trying to query null values from my database. What is the correct syntax?

I am using the sails SQL Server waterline adapter.

I have tried:

?ChoiceItem=isNull
?ChoiceItem=Null
?ChoiceItem="null"

I feel pretty sure it can be done.

Thanks

Upvotes: 1

Views: 1386

Answers (1)

Bonanza
Bonanza

Reputation: 1621

You can use Waterline query language

?where={"ChoiceItem":null}

I think this should work fine.

Upvotes: 2

Related Questions