javascript - How can I check a column for NULL values in node-orm -


i'm using orm package in node.js , i'm trying query database using find() on 1 of models. however, can't figure out how check column null values using find(). there way this?

if sent_at field not there when not set then:

db.emails.find({sent_at: {$exists: false}}) 

if there , null, or not there @ all:

db.emails.find({sent_at: null}) 

reference: query nul fields

note: since didn't mention database name nor orm used assuming database mongodb.

hope helps.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -