@owservable/mongodb
This project is maintained by owservable
MongoDB backend adapter for @owservable/core: live data via MongoDB change streams over mongoose models.
IObservableBackend over a mongoose model โ change feed, queries, populates, virtualsmodels/ folders, registers every model with the BackendRegistry and MongoCollectionsModelsMapaddMongoUpIndicesToAttributes, addMongoDownIndicesToAttributes, addMongoUpAndDownIndicesToAttributesnpm install @owservable/core @owservable/mongodb mongoose
or
pnpm add @owservable/core @owservable/mongodb mongoose
@owservable/core, mongoose and rxjs are peer dependencies.
owservable 2.xThe public API is database-prefixed in v3. The websocket wire protocol is unchanged โ client applications need no changes.
| owservable 2.x | @owservable/mongodb 3.x |
|---|---|
MongoDBConnector |
MongoDBConnector (unchanged) |
CollectionsModelsMap |
MongoCollectionsModelsMap |
processModels |
processMongoModels |
observableModel |
observableMongoModel |
observableDatabase |
observableMongoDatabase |
addIndexToAttributes |
addMongoIndexToAttributes |
addUpIndicesToAttributes |
addMongoUpIndicesToAttributes |
addDownIndicesToAttributes |
addMongoDownIndicesToAttributes |
addUpAndDownIndicesToAttributes |
addMongoUpAndDownIndicesToAttributes |
Protocol-level pieces (OwservableClient, stores, DataMiddlewareMap, cronjobs/workers/watchers) moved to @owservable/core with their names unchanged.
Unlicense โ see LICENSE.