Mongo explain()

Hi,

I’m trying to use explain to get the cursor type (BasicCursor) however, I don’t get the expected ouput:

meteor:PRIMARY> db.Collection.find({_id: "T73DzXM3Zi6NExj59"}).explain()


{
	"queryPlanner" : {
		"plannerVersion" : 1,
		"namespace" : "meteor.Collection",
		"indexFilterSet" : false,
		"parsedQuery" : {
			"_id" : {
				"$eq" : "T73DzXM3Zi6NExj59"
			}
		},
		"winningPlan" : {
			"stage" : "IDHACK"
		},
		"rejectedPlans" : [ ]
	},
	"serverInfo" : {
		"host" : "mypc",
		"port" : 3001,
		"version" : "3.2.6",
		"gitVersion" : "05552b562c7a0b3143a729aaa0838e558dc49b25"
	},
	"ok" : 1
}

Am i using it wrong ?

Hello @n1s,

According to below document , we will get cursur type if no index is used.

Thanks,
Tarun Sharma
Sr. Developer @ AIMDek Technologies Pvt Ltd
+91 9510657842

I downgraded from meteor 1.4.x to 1.3.x and explain is showing the cursor type as expected…