Skip to content

MongoDB request DSLopensavvy.ktmongo.dsl.optionsWithSkipskip

skip

open fun skip(skip: Int)

The number of documents to skip before processing the request.

collections.count {
    options {
        skip(99)
    }
}
open fun skip(skip: Long)

The number of documents to skip before processing the request.

collections.count {
    options {
        skip(99L)
    }
}

Note that not all drivers support specifying a skip larger than an Int.