- 
    Type:Bug 
- 
    Resolution: Duplicate
- 
    Priority:Major - P3 
- 
    None
- 
    Affects Version/s: 2.1.2
- 
    Component/s: Aggregation Framework
- 
    None
- 
        ALL
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
Insert some data:
db.foo.insert({title:"A doc", intervals:[
,
{value:2,x:"b"},
{value:3,x:"c"}]});
Verify it's there:
db.foo.find()
{ "_id" : ObjectId("4fd776800821eeb296a71a70"), "title" : "A doc", "intervals" : [ 
,
{"value" : 2, "x" : "b"},
{"value" : 3, "x" : "c"}] }
Try a projection:
db.foo.aggregate({$project:{title:1, i1:"$intervals.0"}})
{
	"errmsg" : "exception: assertion src/mongo/db/pipeline/value.cpp:446",
	"code" : 0,
	"ok" : 0
}
Try another:
db.foo.aggregate({$project:{title:1, i1:"$intervals.0.value"}})
{
	"errmsg" : "exception: assertion src/mongo/db/pipeline/value.cpp:446",
	"code" : 0,
	"ok" : 0
}
- duplicates
- 
                    SERVER-4589 aggregation: need an array indexing operator -         
- Closed
 
-