-
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
5 years ago
-
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…
-
```js
config.session = {
//maxAge: 10 * 60 * 1000 , // ms
maxAge: 'session',
key: 'EGG_SESS',
httpOnly: true,
encrypt: true,
}
```
我这样设置并没有效果, 需要其他方式来实现么?
-
Really got use to this saga patten. Want to something similar for node, any similar libs?
-
## Description
## Possible Solution
## Other Information
## Subtasks
- [ ]
- [ ]
- [ ]
-
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/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??
-
https://github.com/koajs/koa
-
```version
node: 8.4.0
koa: 2.3.0
```
koa/lib/request.js
![image](https://user-images.githubusercontent.com/9990676/31487810-495f7ad0-af6e-11e7-8361-852566c10bfb.png)
my app code
…
-
We're merging https://github.com/opencollective/opencollective-api/pull/1535 but a migration still need to be done on the Members table to close the topic.
znarf updated
5 years ago