File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
examples/accounts-microservice/src Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
import 'reflect-metadata' ;
2
2
import fetch from 'node-fetch' ;
3
3
import { mergeTypeDefs } from '@graphql-tools/merge' ;
4
- import { introspectSchema } from '@graphql-tools/wrap' ;
4
+ import { schemaFromExecutor } from '@graphql-tools/wrap' ;
5
5
import { stitchSchemas } from '@graphql-tools/stitch' ;
6
6
import { AsyncExecutor } from '@graphql-tools/utils' ;
7
- import { print } from 'graphql' ;
7
+ import { OperationTypeNode , print } from 'graphql' ;
8
8
import {
9
9
authDirective ,
10
10
authenticated ,
@@ -51,7 +51,7 @@ const accountsServerUri = 'http://localhost:4003/';
51
51
resolve : ( parent , args , context , info ) => {
52
52
return delegateToSchema ( {
53
53
schema : remoteSubschema ,
54
- operation : 'query' ,
54
+ operation : OperationTypeNode . QUERY ,
55
55
fieldName : 'getUser' ,
56
56
args,
57
57
context,
@@ -93,7 +93,7 @@ const accountsServerUri = 'http://localhost:4003/';
93
93
} ;
94
94
95
95
const remoteSubschema = {
96
- schema : await introspectSchema ( remoteExecutor ) ,
96
+ schema : await schemaFromExecutor ( remoteExecutor ) ,
97
97
executor : remoteExecutor ,
98
98
} ;
99
99
You can’t perform that action at this time.
0 commit comments