Koa
Koa is a new web framework designed by the team behind Express,
which aims to be a smaller, more expressive, and more robust foundation
for web applications and APIs. By leveraging async functions, Koa allows you
to ditch callbacks and greatly increase error-handling. Koa does not bundle any
middleware within its core, and it provides an elegant suite of methods that make
writing servers fast and enjoyable.
Here are 1,821 public repositories matching this topic...
Describe the bug
Find-one endpoint /resource/:id responses with 500 status code instead of 404, this happens with MongoDB setup.
Steps to reproduce the behavior
- Setup Strapi with MongoDB configuration.
- Create a collection (resource).
- Give
findOneaccess to the public. - Send a request to
/resource-name/any-invalid-id.
Expected behavior
404 response.
**Sys
https://www.apollographql.com/docs/apollo-server/data/errors/#codes
Mentions that:
In addition to stacktraces, Apollo Server's exported errors specify a human-readable string in the code field of extensions that enables the client to perform corrective actions. In addition to improving the client experience, the code field allows the server to categorize errors. For example, an Authenticat
-
Updated
Oct 20, 2019 - JavaScript
I'm submitting a ...
- bug report
- [ X] feature request
- question
PostGraphile version: 4.4.4
postgraphile should honor variables in query string as defined in https://github.com/graphql/express-graphql#http-usage when the query is provided as post body.
with the following exampl
Write docs
git的快捷键 alias,加 oh-my-zsh应该是使用中比较实用的小技巧
在实际应用中,一遍一遍输入git status,git status,git commit -m 'xx'什么的确实挺繁琐,于是配置alias可以简化成 gst === git status,gcmsg 'xxx' === git commit -m 'xxx',gp === git push等等。。
大概是这样配置的
- alias gst='git status'
- alias gp='git push'
- alias gp='git push'
- …
而且还发现oh-my-zsh默认用的插件是git,查看oh-my-zsh的config
cat ~/.zshrc
其中有一条配置是
plugins=(git)
那么刨根问底拦不住,看看git插件的配置
`
Git
-
Updated
May 16, 2020 - JavaScript
Add Micro.js example
I've read the docs, and it seems you can pass through knex instances, but I didn't see if it supports SQLite3 - could you clarify please?
npm run dev 报错
(node:38871) [SEQUELIZE0002] DeprecationWarning: The logging-option should be either a function or false. Default: console.log
events.js:183
throw er; // Unhandled 'error' event
-
Updated
Feb 18, 2020 - JavaScript
I read in the readme of express-session: Note Session data is not saved in the cookie itself, just the session ID. Session data is stored server-side. Is this also the case for koa-session? If yes then there should be a note in the readme as well.
The README badges still point to the previous repository location, while updating it, the Coverall badge is no longer valid (at least it isn't updated with latest reports).
Furthermore, coverage is actually disabled in .travis.yml so the coverage report has not been updated in a while anyway.
This isn't a bug, but it took me quite a long time to figure out, so thought others have struggled with the same issue.
When using the authenticate method, one must remember to both return the result, and call the function with the context. I thought it may be useful to include this explicitly in the documentation.
I created a [Stack Overflow question](https://stackoverflow.com/questions
-
Updated
Dec 28, 2019 - JavaScript
-
Updated
Jun 9, 2020 - JavaScript
-
Updated
Nov 30, 2017 - JavaScript
-
Updated
Apr 8, 2020 - TypeScript


Probably time to remove the Async Functions with Babel section on the main website. And from the readme itself.