Is it possible some how to convince Mongodb driver to use default values for case class fields if no such field found?
Currently getting error:
case class TestMe(fieldname:String="defaultVal")
org.bson.BsonInvalidOperationException: Missing field: "fieldname"
P.S. I know that having it as a Option will not throw the error, bit next I will need to write extra code getOrElse("...")
which I would like to avoid.