db.createCollection("test");db.test.insert([{a: { b: 1, c: [{d:1},{d:2}]}},{a: { b: 1, c: [{d:2},{d:3}]}}]);db.test.createIndex({"a.b": 1, "a.c.d": 1});db.test.find({"a.b": 1, "a.c.d": 1}).explain(true);"winningPlan" : { "stage" : "KEEP_MUTATIONS", "inputStage" : { "stage" : "FETCH", "filter" : { "a.c.d" : { "$eq" : 1 } }, "inputStage" : { "stage" : "IXSCAN", "keyPattern" : { "a.b" : 1, "a.c.d" : 1 }, "indexName" : "a.b_1_a.c.d_1", "isMultiKey" : true, "direction" : "forward", "indexBounds" : { "a.b" : [ "[1.0, 1.0]" ], "a.c.d" : [ "[MinKey, MaxKey]" ] } } }},"executionStats" : { "nReturned" : 1, "totalKeysExamined" : 4, "totalDocsExamined" : 2,I'm trying to figure out if there is a way of having a compound index with a nested prefix and array, so far the query planner seems to ignore the multikey part: