[DRIVERS-111] Support $out aggregation pipeline operator Created: 31/Jul/13  Updated: 27/May/22  Resolved: 11/Nov/15

Status: Closed
Project: Drivers
Component/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Barrie Segal
Resolution: Done Votes: 0
Labels: gb
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on CSHARP-800 Aggregate Command will support $out Closed
depends on JAVA-912 Support $out aggregation pipeline ope... Closed
depends on NODE-78 Support $out aggregation pipeline ope... Closed
depends on PYTHON-555 Support $out aggregation pipeline ope... Closed
depends on RUBY-669 Support $out aggregation pipeline ope... Closed
depends on SERVER-3253 aggregation: unsharded support $out Closed
depends on SERVER-10097 aggregation: support $out on a sharde... Closed
Related
Server Compat: 2.5
Driver Compliance:
Key Status/Resolution FixVersion
JAVA-912 Done 2.12.0, 3.0.0
PERL-258 Done 0.704.0.0
RUBY-669 Done 1.10.0
CSHARP-800 Done 1.9
PYTHON-555 Done 2.7
NODE-78 Done 1.4
PHP-944 Done 1.5.0, 1.5.0alpha1

 Description   

This is somewhat similar to the "out" parameter for the mapReduce command. Documentation for the feature is available in the release notes here:

http://docs.mongodb.org/manual/release-notes/2.6/#out-stage-to-write-data-to-a-collection

The drivers spec is available here:

https://github.com/mongodb/specifications/blob/master/source/out-aggregation-pipeline-operator.rst

Here's an example of using $out, with the result message:

> db.test.aggregate( { $project : { x : 1 } }, { $out : "out" } )
{ "result" : [ ], "ok" : 1 }


Generated at Thu Feb 08 08:20:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.