summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/aggregation_request.h
diff options
context:
space:
mode:
authorJames Wahlin <james.wahlin@10gen.com>2017-05-04 16:42:50 -0400
committerJames Wahlin <james.wahlin@10gen.com>2017-05-19 16:44:50 -0400
commit7cc042a4f8d21354b36d44f6b3642d2795ecb9ee (patch)
tree62dfc213df5a16ad006fe660fea8aecc7dea8e32 /src/mongo/db/pipeline/aggregation_request.h
parent2aaa0eafa5f1c6e1c43c1f42fcf7975722c3fbfe (diff)
downloadmongo-7cc042a4f8d21354b36d44f6b3642d2795ecb9ee.tar.gz
SERVER-29072 Add support for $lookup into a sub-pipeline
Diffstat (limited to 'src/mongo/db/pipeline/aggregation_request.h')
-rw-r--r--src/mongo/db/pipeline/aggregation_request.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/aggregation_request.h b/src/mongo/db/pipeline/aggregation_request.h
index 14b4dad0e59..4feaea931a8 100644
--- a/src/mongo/db/pipeline/aggregation_request.h
+++ b/src/mongo/db/pipeline/aggregation_request.h
@@ -61,6 +61,12 @@ public:
static constexpr long long kDefaultBatchSize = 101;
/**
+ * Parse an aggregation pipeline definition from 'pipelineElem'. Returns a non-OK status if
+ * pipeline is not an array or if any of the array elements are not objects.
+ */
+ static StatusWith<std::vector<BSONObj>> parsePipelineFromBSON(BSONElement pipelineElem);
+
+ /**
* Create a new instance of AggregationRequest by parsing the raw command object. Returns a
* non-OK status if a required field was missing, if there was an unrecognized field name or if
* there was a bad value for one of the fields.