From 000ccc6e0792189a4d3488111a6b0658e80ae832 Mon Sep 17 00:00:00 2001 From: "diego.eriasmot" <diego.erias-mota@etu.hesge.ch> Date: Fri, 14 Jun 2019 22:09:26 +0200 Subject: [PATCH] Indentation --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f9a5d7e..be867b8 100644 --- a/README.md +++ b/README.md @@ -150,5 +150,11 @@ db.orders.aggregate([ ### requĂȘte 7 ```js -db.orders.aggregate([{$unwind:"$items" }, {$group:{_id:"$items.vendor", "total":{$sum: {$multiply: ["$items.finalprice", "$items.qty"]}}}}]) +db.orders.aggregate([ + {$unwind:"$items" }, + {$group:{ + _id:"$items.vendor", + "total":{$sum: {$multiply: ["$items.finalprice", "$items.qty"]}} + }} +]) ``` -- GitLab