Fix span expansion when operation name is null
This commit is contained in:
parent
da150d8a6a
commit
e4d5693ace
1 changed files with 2 additions and 1 deletions
|
@ -66,7 +66,8 @@ class Parser {
|
|||
..directives.addAll(dirs);
|
||||
else
|
||||
throw new SyntaxError(
|
||||
'Expected selection set in fragment definition.', NAME.span);
|
||||
'Expected selection set in fragment definition.',
|
||||
NAME?.span ?? TYPE.span);
|
||||
} else
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue