How can I search for the records filtering in a field that has an undefined value:
db.records.aggregate({
$match: {
myField: "undefined",
}
})
Filter it by $type:6, (mongodb referece, note that this type marked as 'deprecated'):
db.records.aggregate({
$match: {
myField: {'$type':6},
}
})
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With