uk.gov.hmrc.mongo.MongoUtils
See theMongoUtils companion trait
object MongoUtils extends MongoUtils
Attributes
- Companion
- trait
- Graph
-
- Supertypes
- Self type
-
MongoUtils.type
Members list
Type members
Inherited classlikes
object DuplicateKey
Attributes
- Inherited from:
- MongoUtils
- Supertypes
-
class Objecttrait Matchableclass Any
object IndexConflict
Attributes
- Inherited from:
- MongoUtils
- Supertypes
-
class Objecttrait Matchableclass Any
object IndexNotFound
Attributes
- Inherited from:
- MongoUtils
- Supertypes
-
class Objecttrait Matchableclass Any
Value members
Inherited methods
def ensureIndexes[A](collection: MongoCollection[A], indexes: Seq[IndexModel], replaceIndexes: Boolean)(implicit ec: ExecutionContext): Future[Seq[String]]
Attributes
- Inherited from:
- MongoUtils
def ensureSchema[A](mongoComponent: MongoComponent, collection: MongoCollection[A], optSchema: Option[BsonDocument])(implicit ec: ExecutionContext): Future[Unit]
Create the schema if defined, or remove if not defined. Note, the collection will be created if it does not exist yet.
Create the schema if defined, or remove if not defined. Note, the collection will be created if it does not exist yet.
Attributes
- Inherited from:
- MongoUtils
def existsCollection[A](mongoComponent: MongoComponent, collection: MongoCollection[A])(implicit ec: ExecutionContext): Future[Boolean]
Attributes
- Inherited from:
- MongoUtils
In this article