LearnBoost/mongoose — Issue #645: Cant find by date in embedded doc
Author: phillro
Created: 2011-12-13 01:37:21+00:00
State: open

Schema is:

var Event = new Schema({dtStart : Date})
var Organization = new Schema({events: [Event]})

Query is:
var start = new Date(Date.now())
var query = {
'events.dtStart':{
'$gte':start
}
}

I am getting back Organizations which have events exclusively before start.

Version: '2.4.2': '2011-12-12T15:23:54.174Z'