diff options
Diffstat (limited to 'src/mongo/db/pipeline/pipeline.h')
-rw-r--r-- | src/mongo/db/pipeline/pipeline.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/pipeline.h b/src/mongo/db/pipeline/pipeline.h index c682d49cc62..0f9e93984dd 100644 --- a/src/mongo/db/pipeline/pipeline.h +++ b/src/mongo/db/pipeline/pipeline.h @@ -89,6 +89,11 @@ public: BSONObj getInitialQuery() const; /** + * Returns true if the pipeline has an $out stage, and false otherwise. + */ + bool hasOutStage() const; + + /** Write the Pipeline as a BSONObj command. This should be the inverse of parseCommand(). |