I have following document structure
{
"_id":12638gkhF67JKGftyh88,
"tags":[1,3,5,6,9]
}
.
.
.
I want to search search on the basis where _id matches and tags has value '6'
in PHP, my query will be like
$collection -> find(
'$and' => array(
array("_id" => new MongoId("12638gkhF67JKGftyh88")),
array("tags" => WHAT WOULD BE HERE)
)
)
I couldn't find anything about this, help me out plz