CollectionResolution

play.modules.reactivemongo.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] = ???
}

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

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.

Attributes

Inherited from:
WithCollection

Database asynchronous reference

Database asynchronous reference

Attributes

Inherited from:
WithCollection

Concrete fields

The name of the collection

The name of the collection

Attributes