Lab · TypeScript · React · MongoDB
Aggregation Playground
ลองเขียน MongoDB aggregation pipeline กับข้อมูลการเล่นบอร์ดเกม แล้วดูข้อมูลเปลี่ยนไปทีละ stage — engine เขียนเองทั้งหมด รันในเบราว์เซอร์Write a MongoDB aggregation pipeline against board-game play data and watch the documents change stage by stage — a hand-written engine that runs in the browser.
db.plays.aggregate(
รองรับ $match $group $sort $limit $skip $project $count — แก้แล้วผลจะอัปเดตเอง
ข้อมูลหลังแต่ละ stage
| _id | plays |
|---|---|
| Azul | 10 |
| Catan | 7 |
| Carcassonne | 6 |
| Codenames | 4 |
| Splendor | 4 |