excludeId
Excludes the _id field.
Example
class User(
val name: String,
val age: Int,
)
users.aggregate()
.project {
include(User::age)
excludeId()
}Content copied to clipboard
Excludes the _id field.
class User(
val name: String,
val age: Int,
)
users.aggregate()
.project {
include(User::age)
excludeId()
}