score:0

so by the time you get to your pattern match on passwordinfo its no longer a bsondocument because of the call to one. you have in scope your userformat for the type passwordinfo which provides the implicit reader to the method one and which returns the future[option[passwordinfo]] to your val passwordinfo.

this is why your error appears:

[error] /reactivemongo-silhouette-rest/app/models/daos/passwordinfodao.scala:83: value getastry is not a member of com.mohiva.play.silhouette.api.util.passwordinfo [error]

because you already have your type [passwordinfo] and its not a reactivemongo type like bsondocument which has getastry defined.

i can't fully determine your return type but hopefully this helps.

link to reactivemongo one method

link to reactivemongo bsondocument which has getastry


Related Query