Simple Mongoose helper to strip an object to just an ID, for use with Meanie Express Seed projects
You can install this package using
npm install meanie-mongoose-only-id --save
let onlyId = ;//Simple values are retained; //'123'; //123//Objects are stripped to only ID; //'123'; //'123'//Also works on arrays; //['123', '123']
Issues & feature requests
Please report any bugs, issues, suggestions and feature requests in the meanie-mongoose-only-id issue tracker.
Pull requests are welcome! If you would like to contribute to Meanie, please check out the Meanie contributing guidelines.
- Meanie logo designed by Quan-Lin Sim
Copyright 2016-2017, Adam Reis