MongoDB driver for Kotlin (synchronous) • opensavvy.ktmongo.sync • MongoAggregationPipeline
MongoAggregationPipeline¶
class MongoAggregationPipeline<Output : Any> : LazyMongoIterable<Output>
Functions¶
asIterable¶
open override fun asIterable(documentType: Class<Output>): MongoIterable<Output>
asIterable¶
inline fun <Document : Any> LazyMongoIterable<Document>.asIterable(): MongoIterable<Document>
embedInUnionWith¶
open fun embedInUnionWith(writer: ):
first¶
firstOrNull¶
inline fun <Document : Any> LazyMongoIterable<Document>.firstOrNull(): Document?
forEach¶
limit¶
open fun limit(amount: Int): MongoAggregationPipeline<Output>
open fun limit(amount: Long): MongoAggregationPipeline<Output>
match¶
open fun match(filter: <Output>.() -> Unit): MongoAggregationPipeline<Output>
project¶
open fun project(block: <Output>.() -> Unit): MongoAggregationPipeline<Output>
reinterpret¶
open fun <New : Any> reinterpret(): MongoAggregationPipeline<New>
sample¶
open fun sample(size: Int): MongoAggregationPipeline<Output>
set¶
open fun set(block: <Output>.() -> Unit): MongoAggregationPipeline<Output>
skip¶
open fun skip(amount: Int): MongoAggregationPipeline<Output>
open fun skip(amount: Long): MongoAggregationPipeline<Output>
sort¶
open fun sort(block: <Output>.() -> Unit): MongoAggregationPipeline<Output>
toList¶
toSet¶
unionWith¶
open fun unionWith(other: <Output>): MongoAggregationPipeline<Output>
unset¶
open fun unset(block: <Output>.() -> Unit): MongoAggregationPipeline<Output>
withStage¶
open fun withStage(stage: ): MongoAggregationPipeline<Output>