minute
Returns the minute portion of a date as a number between 0 and 59.
The accepted date types are Instant, ObjectId and Timestamp.
Example
class User(
val name: String,
val birthdate: Instant,
val birthminute: Int? = null,
)
users.updateManyWithPipeline {
set {
User::birthminute set User::birthdate.minute
}
}Content copied to clipboard