MongoUtils

uk.gov.hmrc.mongo.MongoUtils
See theMongoUtils companion trait
object MongoUtils extends MongoUtils

Attributes

Companion
trait
Graph
Supertypes
trait MongoUtils
class Object
trait Matchable
class Any
Self type
MongoUtils.type

Members list

Type members

Inherited classlikes

object DuplicateKey

Attributes

Inherited from:
MongoUtils
Supertypes
class Object
trait Matchable
class Any
object IndexConflict

Attributes

Inherited from:
MongoUtils
Supertypes
class Object
trait Matchable
class Any
object IndexNotFound

Attributes

Inherited from:
MongoUtils
Supertypes
class Object
trait Matchable
class 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