@@ -61,7 +61,7 @@ pub(crate) struct VariableId(u32);
61
61
62
62
pub ( crate ) fn resolve (
63
63
schema : & Schema ,
64
- query : & graphql_parser:: query:: Document ,
64
+ query : & graphql_parser:: query:: Document < ' static , String > ,
65
65
) -> Result < Query , QueryValidationError > {
66
66
let mut resolved_query: Query = Default :: default ( ) ;
67
67
@@ -100,7 +100,7 @@ pub(crate) fn resolve(
100
100
101
101
fn create_roots (
102
102
resolved_query : & mut Query ,
103
- query : & graphql_parser:: query:: Document ,
103
+ query : & graphql_parser:: query:: Document < ' static , String > ,
104
104
schema : & Schema ,
105
105
) -> Result < ( ) , QueryValidationError > {
106
106
// First, give ids to all fragments and operations.
@@ -194,7 +194,7 @@ fn create_roots(
194
194
fn resolve_fragment (
195
195
query : & mut Query ,
196
196
schema : & Schema ,
197
- fragment_definition : & graphql_parser:: query:: FragmentDefinition ,
197
+ fragment_definition : & graphql_parser:: query:: FragmentDefinition < ' static , String > ,
198
198
) -> Result < ( ) , QueryValidationError > {
199
199
let graphql_parser:: query:: TypeCondition :: On ( on) = & fragment_definition. type_condition ;
200
200
let on = schema. find_type ( on) . ok_or_else ( || {
@@ -227,7 +227,7 @@ fn resolve_fragment(
227
227
fn resolve_union_selection (
228
228
query : & mut Query ,
229
229
_union_id : UnionId ,
230
- selection_set : & graphql_parser:: query:: SelectionSet ,
230
+ selection_set : & graphql_parser:: query:: SelectionSet < ' static , String > ,
231
231
parent : SelectionParent ,
232
232
schema : & Schema ,
233
233
) -> Result < ( ) , QueryValidationError > {
@@ -271,7 +271,7 @@ fn resolve_union_selection(
271
271
fn resolve_object_selection < ' a > (
272
272
query : & mut Query ,
273
273
object : & dyn crate :: schema:: ObjectLike ,
274
- selection_set : & graphql_parser:: query:: SelectionSet ,
274
+ selection_set : & graphql_parser:: query:: SelectionSet < ' static , String > ,
275
275
parent : SelectionParent ,
276
276
schema : & ' a Schema ,
277
277
) -> Result < ( ) , QueryValidationError > {
@@ -341,7 +341,7 @@ fn resolve_object_selection<'a>(
341
341
fn resolve_selection (
342
342
ctx : & mut Query ,
343
343
on : TypeId ,
344
- selection_set : & graphql_parser:: query:: SelectionSet ,
344
+ selection_set : & graphql_parser:: query:: SelectionSet < ' static , String > ,
345
345
parent : SelectionParent ,
346
346
schema : & Schema ,
347
347
) -> Result < ( ) , QueryValidationError > {
@@ -373,7 +373,7 @@ fn resolve_selection(
373
373
fn resolve_inline_fragment (
374
374
query : & mut Query ,
375
375
schema : & Schema ,
376
- inline_fragment : & graphql_parser:: query:: InlineFragment ,
376
+ inline_fragment : & graphql_parser:: query:: InlineFragment < ' static , String > ,
377
377
parent : SelectionParent ,
378
378
) -> Result < SelectionId , QueryValidationError > {
379
379
let graphql_parser:: query:: TypeCondition :: On ( on) = inline_fragment
@@ -409,7 +409,7 @@ fn resolve_inline_fragment(
409
409
fn resolve_operation (
410
410
query : & mut Query ,
411
411
schema : & Schema ,
412
- operation : & graphql_parser:: query:: OperationDefinition ,
412
+ operation : & graphql_parser:: query:: OperationDefinition < ' static , String > ,
413
413
) -> Result < ( ) , QueryValidationError > {
414
414
match operation {
415
415
graphql_parser:: query:: OperationDefinition :: Mutation ( m) => {
@@ -554,7 +554,7 @@ impl Query {
554
554
pub ( crate ) struct ResolvedVariable {
555
555
pub ( crate ) operation_id : OperationId ,
556
556
pub ( crate ) name : String ,
557
- pub ( crate ) default : Option < graphql_parser:: query:: Value > ,
557
+ pub ( crate ) default : Option < graphql_parser:: query:: Value < ' static , String > > ,
558
558
pub ( crate ) r#type : StoredFieldType ,
559
559
}
560
560
@@ -624,7 +624,7 @@ impl UsedTypes {
624
624
625
625
fn resolve_variables (
626
626
query : & mut Query ,
627
- variables : & [ graphql_parser:: query:: VariableDefinition ] ,
627
+ variables : & [ graphql_parser:: query:: VariableDefinition < ' static , String > ] ,
628
628
schema : & Schema ,
629
629
operation_id : OperationId ,
630
630
) {
0 commit comments