cursor2 = db.BrandScoreHistoryUpdateFinal.find(
{"UserOid" :ObjectId("55d6e7c0f0639509b4c7a83b")}).count()
It should return the count of userid for that particular value but its poping out the error as
Name Error: name objectid is not defined.
when I tried to use :
ObjectId("55d6e7c0f0639509b4c7a83b").toString()
cursor2 = db.BrandScoreHistoryUpdateFinal.find(
{"UserOid" :ObjectId("55d6e7c0f0639509b4c7a83b")}).count()
I have the same error