excludeId

fun excludeId(): Bson

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