CollectionResolution
abstract class CollectionResolution[C <: Collection](val collectionName: String) extends WithCollection[C]
import scala.concurrent.Future
import reactivemongo.api.DB
import reactivemongo.api.bson.collection.BSONCollection
import play.modules.reactivemongo.CollectionResolution
class MyComponent extends CollectionResolution[BSONCollection]("collName") {
def database: Future[DB] = ???
}
Value members
Inherited methods
Resolve a reference to the collection specified by its name.
Resolve a reference to the collection specified by its name.
- Inherited from:
- WithCollection