KeplerGrid guide

Reopen a MongoDB query with its filter, sort and projection

Open a previous Documents query from Query history. KeplerGrid restores the query on its original collection and runs it again against the current data.

Run a query with all three settings

Use the 36 synthetic orders from the count guide. Open keplergrid_query_lab.orders in Documents. Paste the first object into Filter, then open Sort & projection and paste the other two objects.

Filter

{ "status": "paid" }

Sort

{ "created_at": -1, "_id": -1 }

Projection

{ "_id": 1, "status": 1 }

Click Run. Expect ORD-031 first, with the result showing its _id and status.

Select the original query from history

  1. Run a different filter or open another collection so you can see which settings get restored.
  2. In the sidebar, select Query history to open Your query library. Find the row with the original { "status": "paid" } filter and keplergrid_query_lab.orders.
  3. Select the row. KeplerGrid opens the recorded collection and reruns the query. Open Sort & projection to verify the restored sort and projection.
KeplerGrid Your query library lists the paid filter and the practice orders namespace
Select the paid-orders entry for the intended collection to reopen and rerun its filter, sort, and projection.

Check the recorded namespace

Each entry is tied to a connection, database, and collection. Keep the recorded connection available before selecting a query. If a session-only connection no longer exists, open the intended collection and paste the query there.

The query library keeps the filter and options locally. Rerunning retrieves fresh data, so the results may differ from the earlier run. Check the connection and collection labels before reading results or exporting them.

Use MongoDB projection to choose returned fields, or save an aggregation pipeline as a file for a multi-stage workflow.