

[jsTest] ----
[jsTest] Query: [ { "$match" : { "a" : 2 } }, { "$unset" : "_id" } ]
[jsTest] ----

{  "a" : 2 }
{  "a" : [ 1, 2, 3, 4 ] }
{  "a" : [ 2 ] }
{  "a" : [ 2, 3, 4 ] }
nReturned: 4
Plan skeleton: 
{
	"queryPlanner" : {
		"winningPlan" : {
			"queryPlan" : {
				"nodeType" : "Root",
				"child" : {
					"nodeType" : "Evaluation",
					"child" : {
						"nodeType" : "NestedLoopJoin",
						"leftChild" : {
							"nodeType" : "IndexScan"
						},
						"rightChild" : {
							"nodeType" : "LimitSkip",
							"child" : {
								"nodeType" : "Seek"
							}
						}
					}
				}
			}
		}
	}
}


[jsTest] ----
[jsTest] Query: [ { "$match" : { "a" : { "$lt" : 2 } } }, { "$unset" : "_id" } ]
[jsTest] ----

{  "a" : [ 1, 2, 3, 4 ] }
{  "a" : [ 1, 3 ] }
nReturned: 2
Plan skeleton: 
{
	"queryPlanner" : {
		"winningPlan" : {
			"queryPlan" : {
				"nodeType" : "Root",
				"child" : {
					"nodeType" : "Evaluation",
					"child" : {
						"nodeType" : "NestedLoopJoin",
						"leftChild" : {
							"nodeType" : "Unique",
							"child" : {
								"nodeType" : "IndexScan"
							}
						},
						"rightChild" : {
							"nodeType" : "LimitSkip",
							"child" : {
								"nodeType" : "Seek"
							}
						}
					}
				}
			}
		}
	}
}
