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:
4646import http from ' http' ;
4747import { createServerAdapter } from ' @whatwg-node/server' ; // yarn add @whatwg-node/server
4848import { 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.
5252const adapter = createServerAdapter ({
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ the Node environment http module.
4242``` js
4343import http from ' http' ;
4444import { createHandler } from ' graphql-http/lib/use/http' ;
45- import { schema } from ' ./my-graphql-step ' ;
45+ import { schema } from ' ./my-graphql-schema ' ;
4646
4747const server = http .createServer (createHandler ({ schema }));
4848
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' \
4848import fs from ' fs' ;
4949import http2 from ' http2' ;
5050import { createHandler } from ' graphql-http/lib/use/http2' ;
51- import { schema } from ' ./my-graphql-step ' ;
51+ import { schema } from ' ./my-graphql-schema ' ;
5252
5353const server = http2 .createSecureServer (
5454 {
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ the Node environment.
4242``` js
4343import http from ' http' ;
4444import { createHandler } from ' graphql-http/lib/use/node' ;
45- import { schema } from ' ./my-graphql-step ' ;
45+ import { schema } from ' ./my-graphql-schema ' ;
4646
4747const server = http .createServer (createHandler ({ schema }));
4848
@@ -78,7 +78,7 @@ the Node environment http module.
7878``` js
7979import http from ' http' ;
8080import { createHandler } from ' graphql-http/lib/use/http' ;
81- import { schema } from ' ./my-graphql-step ' ;
81+ import { schema } from ' ./my-graphql-schema ' ;
8282
8383const server = http .createServer (createHandler ({ schema }));
8484
Original file line number Diff line number Diff 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({
Original file line number Diff line number Diff 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 *
Original file line number Diff line number Diff 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 * {
Original file line number Diff line number Diff 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 *
You can’t perform that action at this time.
0 commit comments