MacroConfiguration

sealed trait MacroConfiguration

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

Type members

Types

Compile-time options for the JSON macros

Compile-time options for the JSON macros

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)

Naming strategy for fields

Naming strategy for fields

Naming strategy for type names

Naming strategy for type names

Concrete methods

override def equals(that: Any): Boolean
Definition Classes
Any
override def hashCode: Int
Definition Classes
Any