Macro configuration;
It allows to configure compile time options, and behaviour to be retained at runtime (field & type naming).
import reactivemongo.api.bson.{
BSONDocumentReader, MacroConfiguration, Macros
}
case class Foo(name: String)
val r1: BSONDocumentReader[Foo] = Macros.configured.reader[Foo]
val r2: BSONDocumentReader[Foo] = Macros.configured(
MacroConfiguration.simpleTypeName).reader[Foo]
- See also:
- Companion:
- object
class Object
trait Matchable
class Any
Value members
Abstract methods
Name of the type discriminator field (for sealed family; see MacroConfiguration$.defaultDiscriminator)
Name of the type discriminator field (for sealed family; see MacroConfiguration$.defaultDiscriminator)