mongoose-function
mongoose-function copied to clipboard
Provides mongoose support for storing functions
Bumps [mongoose](https://github.com/Automattic/mongoose) from 3.5.6 to 5.7.7. Release notes *Sourced from [mongoose's releases](https://github.com/Automattic/mongoose/releases).* > ## 4.0.2 > No release notes provided. > > ## 3.8.23 > No release notes provided. >...
**Expected**: Functions with async-await syntax should be retrieved as usual **Current**: Such functions are ignored in `toFunction` method
MongoDB supports storing functions directly. So, by using MongoDB's native functionality, back and forth conversion won't be required. Also, MongoDB can handle function validation as well.