-
As proposed by @koskimas & @ollisal:
```js
@action('get')
@transactional()
async doStuff(ctx) {
await Thingy.query(ctx.trx)
...
}
```
The koa's middleware are perfect for transaction …
lehni updated
6 years ago
-
https://github.com/koajs/onerror/blob/master/index.js#L50
if emit error to app.error event listenter, error will both handled by ctx.onerror and app.on('error');
Is that redundant??
-
As a new user, I find it constraining to code (each time) my own "context.rs" to start a new project. it's not intuitive.
Some basic methods in BasicContext should be proposed by default which allo…
-
## Description
## Possible Solution
## Other Information
## Subtasks
- [ ]
- [ ]
- [ ]
-
Really got use to this saga patten. Want to something similar for node, any similar libs?
-
```js
config.session = {
//maxAge: 10 * 60 * 1000 , // ms
maxAge: 'session',
key: 'EGG_SESS',
httpOnly: true,
encrypt: true,
}
```
我这样设置并没有效果, 需要其他方式来实现么?
-
The typings for Options indicate that getToken's first parameter should be the options for the middleware. The documentation says that getToken's first parameter should be the options for the middlewa…
-
https://github.com/koajs/koa
-
See https://github.com/nodejs/Release#end-of-life-releases
- 4.x is end-of-life since 2018-04-30
- 7.x is end-of-life since 2017-06-30
- 9.x is end-of-life since 2018-06-30
Should we remove su…
-