mongodb

@owservable/mongodb

This project is maintained by owservable

owservable

@owservable/mongodb

๐Ÿ“– API Docs ยท โœ… Coverage

MongoDB backend adapter for @owservable/core: live data via MongoDB change streams over mongoose models.

๐Ÿš€ Features

๐Ÿ“ฆ Installation

npm install @owservable/core @owservable/mongodb mongoose

or

pnpm add @owservable/core @owservable/mongodb mongoose

@owservable/core, mongoose and rxjs are peer dependencies.

๐Ÿ” Migrating from owservable 2.x

The 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.

๐Ÿ“„ License

Unlicense โ€” see LICENSE.