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] = ???
}
class Object
trait Matchable
class Any

Value members

Inherited methods

final def collection(implicit ec: ExecutionContext, cp: CollectionProducer[C]): Future[C]

Resolve a reference to the collection specified by its name.

Resolve a reference to the collection specified by its name.

Inherited from:
WithCollection

Database asynchronous reference

Database asynchronous reference

Inherited from:
WithCollection

Concrete fields