0.13.1 • Published 3 months ago
mutent-mongodb v0.13.1
mutent-mongodb
Mutent's adapter for MongoDB.
import { MongoClient } from 'mongodb'
import { Store } from 'mutent'
import { MongoAdapter } from 'mutent-mongodb'
const client = new MongoClient(process.env.MONGO_URL)
await client.connect()
const store = new Store({
adapter: new MongoAdapter({
client,
dbName: 'my-database',
collectionName: 'my-collection'
})
})
const doc = await store
.create({ my: 'document' })
.unwrap()
console.log(`Created document ${doc._id}`)
0.13.1
3 months ago
0.13.0
3 months ago
0.12.0
1 year ago
0.11.0
1 year ago
0.11.1
1 year ago
0.10.1
3 years ago
0.10.2
3 years ago
0.10.0
3 years ago
0.9.0
3 years ago
0.8.3
3 years ago
0.8.2
3 years ago
0.8.1
3 years ago
0.8.0
3 years ago
0.7.0
4 years ago
0.6.0
4 years ago
0.5.0
4 years ago
0.3.0
4 years ago
0.4.0
4 years ago
0.2.0
4 years ago
0.1.0
4 years ago