This commit is contained in:
Sunli 2022-08-23 09:41:50 +08:00
parent bd39025975
commit 9dd3ec894f
3 changed files with 20 additions and 2 deletions

View File

@ -20,7 +20,7 @@ fragment_spread = { "..." ~ !type_condition ~ name ~ directives? }
inline_fragment = { "..." ~ type_condition? ~ directives? ~ selection_set }
fragment_definition = { "fragment" ~ name ~ type_condition ~ directives? ~ selection_set }
type_condition = { "on" ~ name }
type_condition = ${ "on" ~ WHITESPACE+ ~ name }
// Service //

File diff suppressed because one or more lines are too long

View File

@ -10,3 +10,21 @@ fn test_recursion_limit() {
Error::RecursionLimitExceeded
);
}
#[test]
fn test_issue_1039() {
let query = r#"
fragment onboardingFull on OnboardingState {
license
}
query globalConfig {
globalConfig {
onboarding {
...onboardingFull
}
}
}
"#;
parse_query(query).unwrap();
}