MongoClient

io.github.zeal18.zio.mongodb.driver.MongoClient$
See theMongoClient companion trait

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def live(uri: String): ZLayer[Any, Throwable, MongoClient]

Create a MongoClient instance from a connection string uri

Create a MongoClient instance from a connection string uri

Attributes

uri

the connection string

Concrete fields

val live: ZLayer[MongoClientSettings, Throwable, MongoClient]

Create a MongoClient instance from the MongoClientSettings

Create a MongoClient instance from the MongoClientSettings

Attributes

val localhost: ZLayer[Any, Throwable, MongoClient]

Create a default MongoClient at localhost:27017

Create a default MongoClient at localhost:27017

Attributes

Returns:

MongoClient