Export 25 rows from the current query page
Load the 36 synthetic orders. In KeplerGrid, connect in Read only mode and open keplergrid_query_lab.orders in Documents. Enter this filter.
{ "status": "paid" }
Open Sort & projection. In Sort, add a tie-breaker so the page boundary is repeatable.
{ "created_at": -1, "_id": -1 }
In Projection, keep the three columns for the report. Run the query and set Rows to 25 in the footer.
{ "_id": 1, "status": 1, "created_at": 1 }
Open Export, select Current query page and CSV, and save paid-orders-page.csv. The first page has 25 rows from ORD-031 through ORD-007. Moving to another page changes the offset used for the next page export. Find in results only searches the visible results and does not change the database filter used for export.
Export all 31 matches with an aggregation
Switch to Aggregation → JSON. Paste the pipeline and click Run pipeline. Viewing the stage output lets you confirm the field names and sort order before saving.
[
{ "$match": { "status": "paid" } },
{ "$sort": { "created_at": -1, "_id": -1 } },
{ "$project": { "_id": 1, "status": 1, "created_at": 1 } }
]
Open Pipeline files → Export full result → CSV… and save paid-orders-all.csv. The pipeline keeps the same filter, sort, and fields as the page query. The export runs the full pipeline and reads every result it returns.
Compare the reports by order ID
Open both files and count their data rows separately from the header. In this fixture, paid-orders-page.csv has 25 rows and paid-orders-all.csv has 31. The full report adds ORD-006 through ORD-001. Neither file includes a cancelled order.
A $limit or $skip stage also affects the file. An export runs a fresh read, so documents changed by another client after preview can change the contents. Choose Extended JSON when you need BSON type information in the result file.
See aggregation export formats or stream a complete collection to JSON Lines for a transfer that ignores the query filter.