https://github.com/devtin/duck-storage-mongodb
mongodb plugin for duck-storage
https://github.com/devtin/duck-storage-mongodb
Last synced: 12 months ago
JSON representation
mongodb plugin for duck-storage
- Host: GitHub
- URL: https://github.com/devtin/duck-storage-mongodb
- Owner: devtin
- Created: 2020-10-24T01:24:10.000Z (over 5 years ago)
- Default Branch: dev
- Last Pushed: 2021-08-07T17:15:28.000Z (over 4 years ago)
- Last Synced: 2025-03-29T09:03:57.463Z (12 months ago)
- Language: JavaScript
- Size: 375 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README

duck-storage-mongodb
mongodb plugin for duck-storage
## Installation
```sh
$ npm i duck-storage-mongodb --save
# or
$ yarn add duck-storage-mongodb
```
## Features
- [computes index keys](#computes-index-keys)
## computes index keys
```js
const someSchema = new Schema({
name: {
type: String,
index: true
},
email: {
type: String,
unique: true
},
address: {
street: String,
zip: {
type: Number,
index: true
}
}
})
t.snapshot(computeKeys(someSchema))
```
* * *
### License
[MIT](https://opensource.org/licenses/MIT)
© 2020-present Martin Rafael Gonzalez