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.
caseclass Website(@Key("_id") url: String)
Generated handler will map the url field in your code
to _id field in BSON
This member is added by an implicit conversion from Key to
StringAdd performed by method any2stringadd in scala.Predef.
Shadowing
This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error. To access this member you can use a type ascription:
This member is added by an implicit conversion from Key to
StringFormat performed by method any2stringfmt in scala.Predef.
Shadowing
This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error. To access this member you can use a type ascription:
This member is added by an implicit conversion from Key to
ArrowAssoc[Key] performed by method any2ArrowAssoc in scala.Predef.
Shadowing
This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error. To access this member you can use a type ascription:
This member is added by an implicit conversion from Key to
Ensuring[Key] performed by method any2Ensuring in scala.Predef.
Shadowing
This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error. To access this member you can use a type ascription:
(key: Ensuring[Key]).x
Definition Classes
Ensuring
Annotations
@deprecated
Deprecated
(Since version 2.10.0) Use resultOfEnsuring instead
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.Generated handler will map the
url
field in your code to_id
field in BSONthe desired key to use in BSON