Skip to content
Snippets Groups Projects
Commit 000ccc6e authored by diego.eriasmot's avatar diego.eriasmot
Browse files

Indentation

parent 5af82792
No related branches found
No related tags found
No related merge requests found
......@@ -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"]}}
}}
])
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment