Skip to content

Commit c7ff568

Browse files
committed
refactor: *my-graphql-schema
1 parent 5089f46 commit c7ff568

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

docs/modules/use_fetch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ isomorphically use it in _any_ environment. See an example:
4646
import http from 'http';
4747
import { createServerAdapter } from '@whatwg-node/server'; // yarn add @whatwg-node/server
4848
import { createHandler } from 'graphql-http/lib/use/fetch';
49-
import { schema } from './my-graphql-step';
49+
import { schema } from './my-graphql-schema';
5050

5151
// Use this adapter in _any_ environment.
5252
const adapter = createServerAdapter({

docs/modules/use_http.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ the Node environment http module.
4242
```js
4343
import http from 'http';
4444
import { createHandler } from 'graphql-http/lib/use/http';
45-
import { schema } from './my-graphql-step';
45+
import { schema } from './my-graphql-schema';
4646

4747
const server = http.createServer(createHandler({ schema }));
4848

docs/modules/use_http2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ $ openssl req -x509 -newkey rsa:2048 -nodes -sha256 -subj '/CN=localhost' \
4848
import fs from 'fs';
4949
import http2 from 'http2';
5050
import { createHandler } from 'graphql-http/lib/use/http2';
51-
import { schema } from './my-graphql-step';
51+
import { schema } from './my-graphql-schema';
5252

5353
const server = http2.createSecureServer(
5454
{

docs/modules/use_node.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ the Node environment.
4242
```js
4343
import http from 'http';
4444
import { createHandler } from 'graphql-http/lib/use/node';
45-
import { schema } from './my-graphql-step';
45+
import { schema } from './my-graphql-schema';
4646

4747
const server = http.createServer(createHandler({ schema }));
4848

@@ -78,7 +78,7 @@ the Node environment http module.
7878
```js
7979
import http from 'http';
8080
import { createHandler } from 'graphql-http/lib/use/http';
81-
import { schema } from './my-graphql-step';
81+
import { schema } from './my-graphql-schema';
8282

8383
const server = http.createServer(createHandler({ schema }));
8484

src/use/fetch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export type HandlerOptions<Context extends OperationContext = undefined> =
3434
* import http from 'http';
3535
* import { createServerAdapter } from '@whatwg-node/server'; // yarn add @whatwg-node/server
3636
* import { createHandler } from 'graphql-http/lib/use/fetch';
37-
* import { schema } from './my-graphql-step';
37+
* import { schema } from './my-graphql-schema';
3838
*
3939
* // Use this adapter in _any_ environment.
4040
* const adapter = createServerAdapter({

src/use/http.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export type HandlerOptions<Context extends OperationContext = undefined> =
2929
* ```js
3030
* import http from 'http';
3131
* import { createHandler } from 'graphql-http/lib/use/http';
32-
* import { schema } from './my-graphql-step';
32+
* import { schema } from './my-graphql-schema';
3333
*
3434
* const server = http.createServer(createHandler({ schema }));
3535
*

src/use/http2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export type HandlerOptions<Context extends OperationContext = undefined> =
3535
* import fs from 'fs';
3636
* import http2 from 'http2';
3737
* import { createHandler } from 'graphql-http/lib/use/http2';
38-
* import { schema } from './my-graphql-step';
38+
* import { schema } from './my-graphql-schema';
3939
*
4040
* const server = http2.createSecureServer(
4141
* {

src/use/node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export type HandlerOptions<Context extends OperationContext = undefined> =
2121
* ```js
2222
* import http from 'http';
2323
* import { createHandler } from 'graphql-http/lib/use/node';
24-
* import { schema } from './my-graphql-step';
24+
* import { schema } from './my-graphql-schema';
2525
*
2626
* const server = http.createServer(createHandler({ schema }));
2727
*

0 commit comments

Comments
 (0)