Hi everyone
Can i get some help on the following?
This is my current code:
db.getCollection(“JS_products”).aggregate([
{$match:{JS_asin:“Product ID”}},
{$match:{JS_categories:“Shorts”}}])
However the question asks the following:
List the product ID and title of all products in the “Shorts” category. No other
product details are required. I need to use the aggregation pipeline method.
Can someone help out as to what to do? i should end up with 8 or more outputs.