Cloud API Overview > @adpt/cloud > mongodb > MongoDB
mongodb.MongoDB class
Abstract MongoDB component
Signature:
export declare abstract class MongoDB extends PrimitiveComponent implements ConnectToInstance
Remarks
This component is used to denote a needed MongoDB service. Users should use a style sheet to subsitute a concrete MongoDB instance that provides the service. mongodb.TestMongoDB() is such a component, suitable for test environments.
All implementations of this component should implmenent ConnectToInstance that provides a MONGODB_URI
variable of the form mongodb://<hostname>:<port>
.
Methods
Method | Modifiers | Description |
---|---|---|
connectEnv(_scope) |