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

หลัง stage 3 ($limit) — 5 docs
_idplays
Azul10
Catan7
Carcassonne6
Codenames4
Splendor4