PrismStateMongoDB

fmgp.did.method.prism.PrismStateMongoDB
See thePrismStateMongoDB companion class

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def makeLayer(url: String): ZLayer[AsyncDriver, Throwable, PrismState]

makeLayer create a PrismStateMongoDB from a mongoDBConnection

makeLayer create a PrismStateMongoDB from a mongoDBConnection

For the AsyncDriverResource make sure to include the reactivemongo dependencies. It's assumed this dependency is 'provided':

libraryDependencies += "org.reactivemongo" %% "reactivemongo" % V.reactivemongo
val mongoDBConnection = "mongodb+srv://readonly:readonly@cluster0.bgnyyy1.mongodb.net/indexer"
AsyncDriverResource.layer >>> PrismStateMongoDB.makeLayer(mongoDBConnection)

Attributes

def makeReadOnlyLayer(url: String): ZLayer[AsyncDriver, Throwable, PrismStateRead]