Build a store dispatch queue
A useful pipeline usually combines basic stages. Filter the relevant stream, establish its order, limit it only after ranking, and shape the final contract last.
Find completed store orders, select the two lowest-value orders, then return `orderId`, `customerId`, and `total` in ascending total order.
Expected result: Two compact dispatch records, lowest value first.
Example pipeline syntax
[
{ $match: { channel: "store" } },
{ $limit: 2 }
]