Fixes #1039
This commit is contained in:
parent
722ba08b91
commit
181a0bed70
|
@ -20,7 +20,7 @@ fragment_spread = { "..." ~ !type_condition ~ name ~ directives? }
|
||||||
inline_fragment = { "..." ~ type_condition? ~ directives? ~ selection_set }
|
inline_fragment = { "..." ~ type_condition? ~ directives? ~ selection_set }
|
||||||
|
|
||||||
fragment_definition = { "fragment" ~ name ~ type_condition ~ directives? ~ selection_set }
|
fragment_definition = { "fragment" ~ name ~ type_condition ~ directives? ~ selection_set }
|
||||||
type_condition = { "on" ~ name }
|
type_condition = ${ "on" ~ WHITESPACE+ ~ name }
|
||||||
|
|
||||||
// Service //
|
// Service //
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -10,3 +10,21 @@ fn test_recursion_limit() {
|
||||||
Error::RecursionLimitExceeded
|
Error::RecursionLimitExceeded
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_issue_1039() {
|
||||||
|
let query = r#"
|
||||||
|
fragment onboardingFull on OnboardingState {
|
||||||
|
license
|
||||||
|
}
|
||||||
|
|
||||||
|
query globalConfig {
|
||||||
|
globalConfig {
|
||||||
|
onboarding {
|
||||||
|
...onboardingFull
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
"#;
|
||||||
|
parse_query(query).unwrap();
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user