@@ -46,6 +46,7 @@ pub struct Server {
46
46
endpoint : String ,
47
47
headers : HeaderMap ,
48
48
introspection : bool ,
49
+ execute_introspection : bool ,
49
50
explorer : bool ,
50
51
custom_scalar_map : Option < CustomScalarMap > ,
51
52
mutation_mode : MutationMode ,
@@ -72,6 +73,7 @@ impl Server {
72
73
endpoint : String ,
73
74
headers : Headers ,
74
75
introspection : bool ,
76
+ execute_introspection : bool ,
75
77
explorer : bool ,
76
78
custom_scalar_map : Option < CustomScalarMap > ,
77
79
mutation_mode : MutationMode ,
@@ -90,6 +92,7 @@ impl Server {
90
92
endpoint,
91
93
headers,
92
94
introspection,
95
+ execute_introspection,
93
96
explorer,
94
97
custom_scalar_map,
95
98
mutation_mode,
@@ -138,6 +141,7 @@ struct Starting {
138
141
endpoint : String ,
139
142
headers : HeaderMap ,
140
143
introspection : bool ,
144
+ execute_introspection : bool ,
141
145
explorer : bool ,
142
146
custom_scalar_map : Option < CustomScalarMap > ,
143
147
mutation_mode : MutationMode ,
@@ -179,7 +183,9 @@ impl Starting {
179
183
)
180
184
. await ?;
181
185
182
- let execute_tool = self . introspection . then ( || Execute :: new ( self . mutation_mode ) ) ;
186
+ let execute_tool = self
187
+ . execute_introspection
188
+ . then ( || Execute :: new ( self . mutation_mode ) ) ;
183
189
184
190
let root_query_type = self
185
191
. introspection
@@ -399,6 +405,7 @@ impl StateMachine {
399
405
endpoint : server. endpoint ,
400
406
headers : server. headers ,
401
407
introspection : server. introspection ,
408
+ execute_introspection : server. execute_introspection ,
402
409
explorer : server. explorer ,
403
410
custom_scalar_map : server. custom_scalar_map ,
404
411
mutation_mode : server. mutation_mode ,
0 commit comments