# How to update one row?

  1. Specify the query condition using the collection's Query class, ex: LotteryQuery
  2. Compose the update using the collection's Update class, ex: LotteryUpdate
  3. Use the collection's Writer api updateOne passing the query & update.
val lotteryQry = LotteryQuery().lotteryName.is("lotto-1")
val lotteryUpd = LotteryUpdate().open.set(false)
LotteryWriter().updateOne(lotteryQry, lotteryUpd)