File tree 1 file changed +15
-15
lines changed
1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,21 @@ fastify.listen({ port: 4000 });
141
141
console .log (' Listening to port 4000' );
142
142
```
143
143
144
+ ##### With [ ` Koa ` ] ( https://koajs.com/ )
145
+
146
+ ``` js
147
+ import Koa from ' koa' ; // yarn add koa
148
+ import mount from ' koa-mount' ; // yarn add koa-mount
149
+ import { createHandler } from ' graphql-http/lib/use/koa' ;
150
+ import { schema } from ' ./previous-step' ;
151
+
152
+ const app = new Koa ();
153
+ app .use (mount (' /graphql' , createHandler ({ schema })));
154
+
155
+ app .listen ({ port: 4000 });
156
+ console .log (' Listening to port 4000' );
157
+ ```
158
+
144
159
##### With [ ` Deno ` ] ( https://deno.land/ )
145
160
146
161
``` ts
@@ -190,21 +205,6 @@ export default {
190
205
};
191
206
```
192
207
193
- ##### With [ ` Koa ` ] ( https://koajs.com/ )
194
-
195
- ``` js
196
- import Koa from ' koa' ; // yarn add koa
197
- import mount from ' koa-mount' ; // yarn add koa-mount
198
- import { createHandler } from ' graphql-http/lib/use/koa' ;
199
- import { schema } from ' ./previous-step' ;
200
-
201
- const app = new Koa ();
202
- app .use (mount (' /graphql' , createHandler ({ schema })));
203
-
204
- app .listen ({ port: 4000 });
205
- console .log (' Listening to port 4000' );
206
- ```
207
-
208
208
#### Use the client
209
209
210
210
``` js
You can’t perform that action at this time.
0 commit comments