-
-
Save phillipadsmith/ca5758a142a0f19dd471 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This query in Mongo works: | |
db.tweets.find({ 'extracted': { $exists: false } }).count() | |
# This query in Mango does not return the same results (filter not applied) | |
my $results = $mango->db( 'fomo' )->collection( 'tweets' ) | |
->find( | |
{ | |
'extracted' => { '$exists' => 'false' }, | |
} | |
)->all; | |
# This query in Mango returns the same (correct) results as the Mongo query | |
my $results = $mango->db( 'fomo' )->collection( 'tweets' ) | |
->find( | |
{ | |
'extracted' => { '$nin' => ['1'] }, | |
} | |
)->all; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
my $results = $mango->db( 'fomo' )->collection( 'tweets' )
->find(
{
'$exists' => { 'extracted' => 'false' },
}
)->all;