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

Update README.md

parent fb09cc4c
Branches
No related tags found
No related merge requests found
...@@ -138,7 +138,12 @@ db.orders.find( {"customer.id" : NumberLong( "1848533681975648" )}).pretty() ...@@ -138,7 +138,12 @@ db.orders.find( {"customer.id" : NumberLong( "1848533681975648" )}).pretty()
### requête 6 ### requête 6
```js ```js
db.orders.aggregate([{$group : {_id :"$customer.id", Nombre_Commandes:{$sum:1}}}]) db.orders.aggregate([
{ $group: {
_id: { id: "$customer.id", pseudo: "$customer.pseudo" },
Nombre_Commandes:{$sum:1}
} }
])
``` ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment