mirror of
https://github.com/vale981/apollo-server
synced 2025-03-06 10:11:40 -05:00
koa: remove dist names from readme example (#1122)
Since koa@2 has been published for a long time, and almost all the middlewares migrated to koa@2. It's no need to add extra dist names for koa and koa middlewares.
This commit is contained in:
parent
dedd0f4b86
commit
6e80c376fe
1 changed files with 3 additions and 3 deletions
|
@ -129,9 +129,9 @@ StartServer();
|
|||
### Koa
|
||||
|
||||
```js
|
||||
import koa from 'koa'; // koa@2
|
||||
import koaRouter from 'koa-router'; // koa-router@next
|
||||
import koaBody from 'koa-bodyparser'; // koa-bodyparser@next
|
||||
import koa from 'koa';
|
||||
import koaRouter from 'koa-router';
|
||||
import koaBody from 'koa-bodyparser';
|
||||
import { graphqlKoa, graphiqlKoa } from 'apollo-server-koa';
|
||||
|
||||
const app = new koa();
|
||||
|
|
Loading…
Add table
Reference in a new issue