kmongo / org.litote.kmongo / excludeId

excludeId

fun excludeId(): Bson (source)

Creates a projection that excludes the _id field. This suppresses the automatic inclusion of _id that is the default, even when other fields are explicitly included.

Return
the projection