Open tianjianfeng opened 11 years ago
from readme: NOTE this is useful for ReactiveMongo 0.8, 0.9 has different API and already contains these maros
however documentation is sparse, see ReactiveMongo 0.9 scaladoc. macros are in reactivemongo.bson.Macros
first of all the userHandler should go into the companion object
case class User(firstname: String, ...)
object User {
implicit val userHandler = Macros.handler[User]
}
NoSuchElementException: None.get
is usually a symptom of a missing field. Are you sure your existing documents will pass through the userHandler?
Hi,
I am using reactivemongo 0.9. Following your example in the readme, I found problems below:
Thanks