A repository for your cobox-groups
peg 28a2a2ad34 Merge branch 'remove-need-for-config' of CoBox/cobox-group-store into development 2 years ago
test write a test for either regular Group or BlindReplicator 2 years ago
README.md update README 2 years ago
index.js pass in the collection 2 years ago
package.json update deps 2 years ago
util.js outline repository pattern 2 years ago
yarn.lock update deps 2 years ago

README.md

cobox-group-store

A repository for your cobox-groups. Adhere’s to a standard CRUD repository pattern.

API

const Store = require('cobox-group-store')
const storage = 'path/to/storage' // defaults to storage path defined in cobox-constants package
const store = Store(storage)

let groups = await store.all() // ensures groups loaded, then returns an array of cobox-groups

await store.findBy({ name, address })
await store.where({ name, address })
await store.create({ name, address })