File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -401,6 +401,7 @@ pub enum DirectiveLocation {
401
401
EnumValue ,
402
402
InputObject ,
403
403
InputFieldDefinition ,
404
+ VariableDefinition ,
404
405
}
405
406
406
407
#[ derive( Debug , Clone , PartialEq ) ]
@@ -451,6 +452,7 @@ impl DirectiveLocation {
451
452
EnumValue => "ENUM_VALUE" ,
452
453
InputObject => "INPUT_OBJECT" ,
453
454
InputFieldDefinition => "INPUT_FIELD_DEFINITION" ,
455
+ VariableDefinition => "VARIABLE_DEFINITION" ,
454
456
}
455
457
}
456
458
@@ -478,6 +480,7 @@ impl DirectiveLocation {
478
480
| EnumValue
479
481
| InputObject
480
482
| InputFieldDefinition
483
+ | VariableDefinition
481
484
=> false ,
482
485
}
483
486
}
@@ -517,6 +520,7 @@ impl FromStr for DirectiveLocation {
517
520
"ENUM_VALUE" => EnumValue ,
518
521
"INPUT_OBJECT" => InputObject ,
519
522
"INPUT_FIELD_DEFINITION" => InputFieldDefinition ,
523
+ "VARIABLE_DEFINITION" => VariableDefinition ,
520
524
_ => return Err ( InvalidDirectiveLocation ) ,
521
525
} ;
522
526
You can’t perform that action at this time.
0 commit comments