I ve the array called $contact["categories"] in some of the rows in mongodb collection.
some rows doesn't have that array. how to check if particular array exists in collection??
just check only if the array exists?? does $exist work on arrays as well?? when i try to use $contact["categories"], since it doesnt exits it is throwing error as undefined index.
$existsoperator