@furystack/mongodb-store

10.0.9 • Public • Published

mongodb-store

MongoDB Physical Store implementation for FuryStack.

Initialization

import '@furystack/mongodb-store'

export class TestEntry {
  declare _id: string
  declare value: string
}

myInjector
  .setupStores(sm => {
    sm.useMongoDb(TestEntry, 'mongodb://localhost:27017', 'test', 'TestEntries')

const myMongoStore = myInjector.getInstance(StoreManager).getStoreFor(TestEntry)

Package Sidebar

Install

npm i @furystack/mongodb-store

Weekly Downloads

209

Version

10.0.9

License

GPL-2.0

Unpacked Size

62.4 kB

Total Files

29

Last publish

Collaborators

  • gallayl