StageDebugReport¶
sealed class StageDebugReport
A debug report to help understand how a specific stage behaves.
The report describes a stage and its output. A stage may be successful or a failure.
To generate a debug report, call MongoAggregationPipeline.debug.
Inheritors¶
Types¶
Failure¶
data class Failure(val stage: BsonDocument, val failure: Throwable) : MongoAggregationPipeline.StageDebugReport
A debug report for a failed stage.
Success¶
data class Success(val stage: BsonDocument, val results: List<BsonDocument>) : MongoAggregationPipeline.StageDebugReport
A debug report for a successful stage.
Properties¶
stage¶
abstract val stage: BsonDocument
The stage that was executed.
Note that the very first stage in a pipeline is always an empty document. See PipelineDebugReport.stages for more information.