I want to find all the documents which are present and have array size greater than 1
My MongoDB collection looks like
{
"_id" : ObjectId("5eaaeedd00101108e1123452"),
"type" : ["admin","teacher","student"]
}
{
"_id" : ObjectId("5eaaeedd00101108e1123453"),
"type" : ["student"],
}
How I find the document which has more than 1 type