Skip to content

services - high-level build functions to create layers #36

@devmatteini

Description

@devmatteini

Instead of doing these operations

const MyMongoClient = MongoClientService.Tag("MyMongoClient")
const MyDbLive = DbService.layer(MyDb, MyMongoClient, "mydb")
const MyMongoClientLive = MongoClientService.layer(MyMongoClient, "mongodb://localhost:27017")

we could have some high-level build functions

const MyDbLive = SomeService.DONT_CARE_ABOUT_EXPLICIT_MONGO_CLIENT_SERVICE(MyDb, "mydb", "mongodb://localhost:27017")

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions