File tree Expand file tree Collapse file tree 8 files changed +9
-9
lines changed Expand file tree Collapse file tree 8 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ isomorphically use it in _any_ environment. See an example:
46
46
import http from ' http' ;
47
47
import { createServerAdapter } from ' @whatwg-node/server' ; // yarn add @whatwg-node/server
48
48
import { createHandler } from ' graphql-http/lib/use/fetch' ;
49
- import { schema } from ' ./my-graphql-step ' ;
49
+ import { schema } from ' ./my-graphql-schema ' ;
50
50
51
51
// Use this adapter in _any_ environment.
52
52
const adapter = createServerAdapter ({
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ the Node environment http module.
42
42
``` js
43
43
import http from ' http' ;
44
44
import { createHandler } from ' graphql-http/lib/use/http' ;
45
- import { schema } from ' ./my-graphql-step ' ;
45
+ import { schema } from ' ./my-graphql-schema ' ;
46
46
47
47
const server = http .createServer (createHandler ({ schema }));
48
48
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ $ openssl req -x509 -newkey rsa:2048 -nodes -sha256 -subj '/CN=localhost' \
48
48
import fs from ' fs' ;
49
49
import http2 from ' http2' ;
50
50
import { createHandler } from ' graphql-http/lib/use/http2' ;
51
- import { schema } from ' ./my-graphql-step ' ;
51
+ import { schema } from ' ./my-graphql-schema ' ;
52
52
53
53
const server = http2 .createSecureServer (
54
54
{
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ the Node environment.
42
42
``` js
43
43
import http from ' http' ;
44
44
import { createHandler } from ' graphql-http/lib/use/node' ;
45
- import { schema } from ' ./my-graphql-step ' ;
45
+ import { schema } from ' ./my-graphql-schema ' ;
46
46
47
47
const server = http .createServer (createHandler ({ schema }));
48
48
@@ -78,7 +78,7 @@ the Node environment http module.
78
78
``` js
79
79
import http from ' http' ;
80
80
import { createHandler } from ' graphql-http/lib/use/http' ;
81
- import { schema } from ' ./my-graphql-step ' ;
81
+ import { schema } from ' ./my-graphql-schema ' ;
82
82
83
83
const server = http .createServer (createHandler ({ schema }));
84
84
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ export type HandlerOptions<Context extends OperationContext = undefined> =
34
34
* import http from 'http';
35
35
* import { createServerAdapter } from '@whatwg-node/server'; // yarn add @whatwg-node/server
36
36
* import { createHandler } from 'graphql-http/lib/use/fetch';
37
- * import { schema } from './my-graphql-step ';
37
+ * import { schema } from './my-graphql-schema ';
38
38
*
39
39
* // Use this adapter in _any_ environment.
40
40
* const adapter = createServerAdapter({
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export type HandlerOptions<Context extends OperationContext = undefined> =
29
29
* ```js
30
30
* import http from 'http';
31
31
* import { createHandler } from 'graphql-http/lib/use/http';
32
- * import { schema } from './my-graphql-step ';
32
+ * import { schema } from './my-graphql-schema ';
33
33
*
34
34
* const server = http.createServer(createHandler({ schema }));
35
35
*
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export type HandlerOptions<Context extends OperationContext = undefined> =
35
35
* import fs from 'fs';
36
36
* import http2 from 'http2';
37
37
* import { createHandler } from 'graphql-http/lib/use/http2';
38
- * import { schema } from './my-graphql-step ';
38
+ * import { schema } from './my-graphql-schema ';
39
39
*
40
40
* const server = http2.createSecureServer(
41
41
* {
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export type HandlerOptions<Context extends OperationContext = undefined> =
21
21
* ```js
22
22
* import http from 'http';
23
23
* import { createHandler } from 'graphql-http/lib/use/node';
24
- * import { schema } from './my-graphql-step ';
24
+ * import { schema } from './my-graphql-schema ';
25
25
*
26
26
* const server = http.createServer(createHandler({ schema }));
27
27
*
You can’t perform that action at this time.
0 commit comments