https://github.com/rumkin/mongoose-map
ES2015 Map type support for Mongoose ORM
https://github.com/rumkin/mongoose-map
Last synced: 11 months ago
JSON representation
ES2015 Map type support for Mongoose ORM
- Host: GitHub
- URL: https://github.com/rumkin/mongoose-map
- Owner: rumkin
- License: mit
- Created: 2016-06-21T14:17:17.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-05T17:26:18.000Z (almost 10 years ago)
- Last Synced: 2024-11-09T14:07:01.180Z (over 1 year ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Mongoose Map
ES2015 Map type support for Mongoose ORM.
## Installation
Install via npm:
```shell
npm i mongoose-map
```
## Usage
```javascript
const mongoose = require('mongoose');
const MongooseMap = require('mongoose-map')(mongoose);
const testSchema = new mongoose.Schema({
test: MongooseMap,
});
const TestModel = mongoose.model('Test', testSchema);
```
## License
Published under MIT license.