What am I doing incorrectly? I have a object that looks like so

{
    "_id" : ObjectId("5365e47c183aa8df9dee7558"),
    "count" : NumberLong(23),
    "matches" : [ 
        "Team 2", 
        null, 
        "Team 2", 
        "Team 2", 
        "Team 1", 
        "Team 1", 
        "Team 1", 
        "Team 2", 
        "Team 1", 
        "Team 1", 
        "Team 2", 
        "Team 1", 
        "Team 2", 
        "Team 1", 
        "Team 1", 
        "Team 1", 
        "Team 1", 
        "Team 1"
    ],
    "player1" : "Team 1",
    "player2" : "Team 2",
    "last_seen" : ISODate("2014-05-17T14:59:07.000Z")
}


my Mango query looks like so but fails to return anything

my $wat = $self->matches->find({
    last_seen => { 
       '$gte' => DateTime->new( year => 2014, month => 5, day => 12 )
    }
});

if I run the exact same setup via the MongoDB driver (tested outside of 
Mojo/Mango) returns data:

my $wat = $matches->find({
    last_seen => { 
       '$gte' => DateTime->new( year => 2014, month => 5, day => 12 )
    }
});

What am I missing?




-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to