FieldNaming

trait FieldNaming extends String => String

Naming strategy, to map each class property to the corresponding field.

import reactivemongo.api.bson.{ FieldNaming, MacroConfiguration }

def initCfg(naming: FieldNaming): MacroConfiguration =
 MacroConfiguration(fieldNaming = naming)
See also:
Companion:
object
trait String => String
class Object
trait Matchable
class Any
object Identity.type
object PascalCase.type
object SnakeCase.type

Value members

Abstract methods

def apply(property: String): String

Returns the field name for the class property.

Returns the field name for the class property.

Value parameters:
property

the name of the case class property

Inherited methods

def andThen[A](g: String => A): String => A
Inherited from:
Function1
def compose[A](g: A => String): A => String
Inherited from:
Function1
override def toString(): String
Definition Classes
Function1 -> Any
Inherited from:
Function1