Scala driver, default collection value when field is absent from document


Given the class

case class Person(firstname: String, aliases: Seq[String], lastname: String)

when using Macros to generate the codec


It looks like the codec will fail to deserialize the document if ‘aliases’ is absent (I am not considering the other fields here).

Would it be a reasonable feature to set it as an empty Seq ?


You ever get an answer to your question?