Skip to content

Commit 2d1863c

Browse files
committed
review tweaks
1 parent dc57027 commit 2d1863c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ export default {
226226

227227
in `<functionsDirectory>/graphql.mjs`
228228
```js
229-
import { createHandler } from 'graphql-http/lib/use/@netlify/functions'; // npm install @netlify/functions
229+
import { createHandler } from 'graphql-http/lib/use/@netlify/functions'; // yarn add @netlify/functions
230230
import { schema } from './previous-step';
231231

232232
// Create the GraphQL over HTTP native fetch handler

docs/modules/use__netlify_functions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212

1313
- [createHandler](use__netlify_functions.md#createhandler)
1414

15-
## Server/netlify
15+
## Server/@netlify/functions
1616

1717
### HandlerOptions
1818

19-
Ƭ **HandlerOptions**<`Context`\>: [`HandlerOptions`](../interfaces/handler.HandlerOptions.md)<`HandlerEvent`, `HandlerContext`, `Context`\>
19+
Ƭ **HandlerOptions**<`Context`\>: [`HandlerOptions`](../interfaces/handler.HandlerOptions.md)<`NetlifyHandlerEvent`, `NetlifyHandlerContext`, `Context`\>
2020

2121
Handler options when using the netlify adapter
2222

@@ -30,7 +30,7 @@ ___
3030

3131
### createHandler
3232

33-
**createHandler**<`Context`\>(`options`): `Handler`
33+
**createHandler**<`Context`\>(`options`): `NetlifyHandler`
3434

3535
Create a GraphQL over HTTP spec compliant request handler for netlify functions
3636

@@ -48,4 +48,4 @@ Create a GraphQL over HTTP spec compliant request handler for netlify functions
4848

4949
#### Returns
5050

51-
`Handler`
51+
`NetlifyHandler`

src/use/@netlify/functions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ import type {
1313
/**
1414
* Handler options when using the netlify adapter
1515
*
16-
* @category Server/netlify
16+
* @category Server/@netlify/functions
1717
*/
1818
export type HandlerOptions<Context extends OperationContext = undefined> =
1919
RawHandlerOptions<NetlifyHandlerEvent, NetlifyHandlerContext, Context>;
2020

2121
/**
2222
* Create a GraphQL over HTTP spec compliant request handler for netlify functions
2323
*
24-
* @category Server/netlify
24+
* @category Server/@netlify/functions
2525
*/
2626
export function createHandler<Context extends OperationContext = undefined>(
2727
options: HandlerOptions<Context>,

0 commit comments

Comments
 (0)