Shijie Lu

Results 15 comments of Shijie Lu

@babel/plugin-transform-runtime, userESModules, When enabled, the transform will use helpers that do not get run through @babel/plugin-transform-modules-commonjs. userESModules: true, var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));

@babel/polyfill useBuiltIns: 'usage' yarn add core-js --save

```js // src/controller/mongoose.js async testAction() { const Grouping2Employee = this.model('mongoose/grouping2employee'); const data = await Grouping2Employee.find().populate('employee').exec(); this.success(data); } // src/model/mongoose/grouping2employee.js get schema() { const schema = new think.Mongoose.Schema( { department: {...

你把这里的 this.model 也替换为 think.mongoose 试试吧😄

恩,目前是这样的,关于 ref 的问题我们稍后讨论一下,看看怎么处理会比较好。

@zengqingsong 指的是什么?来段代码吧

暂时只支持手动初始化 ref 对应的模型, 如 commented on 2 Dec 2017 提到的

不支持软删除操作,软删除更多的是业务逻辑了。 就算支持了软删除,也不也得先查询再修改么。。。

@oorzc https://github.com/thinkjs/think-cache-file/blob/master/index.js#L36-L38 就是定时调用 gc 方法实现自动清理缓存的