hi, i’m starting to learn mongodb and currently i’m stuck at a query :
Give the number of documents whose type list (properties.type_as_array) contains “geoserve” and “tectonic-summary ».
I’ve tried this query but the result is not correct:
db.collection.find({
$and:[{properties.type_as_array:
{$regex:”.geoserve.",".tectonic-summary."}
}]
});
Need your help. thanks