... Or, in Node.js >= 7.6.0: schema.pre('save', async function() { await doStuff(); await ... The below script will print out "Hello from pre save":
確定! 回上一頁