摘要:
When we try to do MongoDB opration, mongoose return Promise, we can use async/await to simply the code: The problme here is no error handling, we can 阅读全文
posted @ 2017-06-19 23:34
Zhentiw
阅读(300)
评论(0)
推荐(0)
摘要:
Mixin works as a function. Here, we use include keyword to inlcude a mixin file. Exec a mixin function we can use '+': Define a mixin: Here we use som 阅读全文
posted @ 2017-06-19 22:48
Zhentiw
阅读(381)
评论(0)
推荐(0)
摘要:
Mongoose has some hooks, for example: Before 'save' action, will trigger the function to generate the 'slug' JIT. 阅读全文
posted @ 2017-06-19 22:15
Zhentiw
阅读(246)
评论(0)
推荐(0)

浙公网安备 33010602011771号