SyntaxFix
Write A Post
Hire A Developer
Questions
If the sent_at field is not there when its not set then:
db.emails.count({sent_at: {$exists: false}})
If its there and null, or not there at all:
db.emails.count({sent_at: null})
Refer here for querying and null