File tree 1 file changed +7
-8
lines changed
1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -6,17 +6,12 @@ import ElasticApiParser from '../scripts/apiParser/ElasticApiParser';
6
6
7
7
const expressPort = process . env . port || process . env . PORT || 9201 ;
8
8
9
- const elasticClient = new elasticsearch . Client ( {
10
- host : 'http://localhost:9200' ,
11
- apiVersion : '5.0' ,
12
- log : 'trace' ,
13
- } ) ;
14
-
15
9
const generatedSchema = new GraphQLSchema ( {
16
10
query : new GraphQLObjectType ( {
17
11
name : 'Query' ,
18
- // see node_modules/elasticsearch/src/lib/apis/ for available versions
19
12
fields : {
13
+ // see node_modules/elasticsearch/src/lib/apis/ for available versions
14
+
20
15
elastic50 : {
21
16
description : 'Elastic v5.0' ,
22
17
type : new GraphQLObjectType ( {
@@ -88,7 +83,11 @@ server.use('/', graphqlHTTP({
88
83
schema : generatedSchema ,
89
84
graphiql : true ,
90
85
context : {
91
- // elasticClient,
86
+ // elasticClient: new elasticsearch.Client({
87
+ // host: 'http://localhost:9200',
88
+ // apiVersion: '5.0',
89
+ // log: 'trace',
90
+ // }),
92
91
} ,
93
92
} ) ) ;
94
93
You can’t perform that action at this time.
0 commit comments