Ignores a field
Ignores a field
Specify a key different from field name in your case class.
Specify a key different from field name in your case class.
Convenient to use when you'd like to leverage mongo's _id
index
but don't want to actually use _id
in your code.
case class Website(@Key("_id") url: String)
Generated handler will map the url
field in your code
to _id
field in BSON
the desired key to use in BSON
Annotations to use on case classes that are being processed by macros.