Mongo Storage Adapter, keeps bBot brain data collections as sub-collection
of a single parent Mongo DB model/collection. The
keeps the brain's in-memory data assigned against it's key (e.g.
Long-term data is stored in sub-collections alongside memory, using either
a key for key/value pairs, or a key-less array for serial data.
Create adapter instance with ref to bot instance. Prevent direct access to constructor for singleton adapter
The current bBot instance
Find certain stuff in Mongo
Find a thing in Mongo
Add item to serial store data
Get all the memory document data
Get rid of stuff in Mongo
Utility to convert internal object to schema required in adapter platform. Passing the original internal object as the external, allows inheriting all attributes without needing to map the ones that are the same in both. Otherwise, result would only include values from defined schema fields.
Put memory data in documents by sub-collection
Connect to Mongo
Singleton instance init
Generated using TypeDoc