# Where to define computed properties row-level?
define computed property as a
letinside a collection in .kmongo.for example, to define age as a computed property:
collection Employee { property name:String property designation:String property dob:CalendarDate let age:Int }run command
compileimplement the computation logic in the generated
RowExtnclasstrait EmployeeRowExtn extends EmployeeRowExtnTrait { row: EmployeeRow => override lazy val age: Int = { val today = grab[TimeService].todayAtLocal val ageInDays = dob.noOfDaysInFuture(today) val age = ageInDays / 365 age } }