An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

duck-storage-mongodb


Version


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