Skip to content

Commit 5d5a821

Browse files
committed
docs: import fastify handler for fastify
1 parent 6924d8c commit 5d5a821

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/modules/use_fastify.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ the fastify framework.
4141

4242
```js
4343
import Fastify from 'fastify'; // yarn add fastify
44-
import { createHandler } from 'graphql-http/lib/use/express';
44+
import { createHandler } from 'graphql-http/lib/use/fastify';
4545
import { schema } from './my-graphql-schema';
4646

4747
const fastify = Fastify();

src/use/fastify.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export type HandlerOptions<Context extends OperationContext = undefined> =
2828
*
2929
* ```js
3030
* import Fastify from 'fastify'; // yarn add fastify
31-
* import { createHandler } from 'graphql-http/lib/use/express';
31+
* import { createHandler } from 'graphql-http/lib/use/fastify';
3232
* import { schema } from './my-graphql-schema';
3333
*
3434
* const fastify = Fastify();

0 commit comments

Comments
 (0)