Replicating airbnb following the atomic design principles...
@nextbnb/database
is a package containing the interfaces and functions to setup a database client that can be utilized in other packages.
Interfaces have a prefix of ‘I’
Class | Description |
---|---|
MongoClient |
Interface | Description |
---|---|
IMongo | |
IMongoConstructor |
Variable | Description |
---|---|
createDB | Factory function to create the Mongoose Client instance |
Type Alias | Description |
---|---|
TDatabaseClient |