
itcount() - iterates through documents and counts them. objsLeftInBatch() - returns count of docs left in current batch (when exhausted, a new getMore will be issued). A few months ago the server was upgraded to 4.x, and the pipeline continued to run fine using Java driver 3.x. We might reconsider it later but for now I am closing.įWIW, I need to buy a Studio 3T license just to get the data that is already right here, literally at my fingertips. As some background, this was a pipeline I generated over a year ago (not sure the precise Compass version) and it worked fine with Java driver 3.x and Server 3.x.

a new Terminal or Command Prompt window).
Syntax The syntax for mongoexport goes like this: mongoexport -collection#MONGODB COMPASS EXPORT AGGREGATION RESULTS HOW TO#
This is a "likely won't fix" for the time being. This article shows you how to use mongoexport to export MongoDB query results to a CSV file. This is a pain for users as they have to fall back to mongo shell or 3rd party GUI solutions. I think the best way is to use the dedicated feature export data (next to 'add data' button) Or save the result of all your stage as a view (it creates a new collection with your results) and export the data (as previous pictures): Thank you but I don't think that box 'export query with filters' is editable. The current behaviour (as of v1.17.0) is that for a current aggregation pipeline the Export interface will not construct a query. That includes rich query options such as projection (not yet implemented as per COMPASS-2843) and aggregations.

Export results of an aggregationĬompass users often want to be able to export the results of any query they can compose in the Compass UI.
