Update visitor.rs
This commit is contained in:
parent
1987a7402b
commit
d8c0018856
|
@ -376,6 +376,15 @@ fn visit_selection<'a, V: Visitor<'a>>(
|
|||
visit_field(v, ctx, field);
|
||||
},
|
||||
);
|
||||
} else {
|
||||
ctx.report_error(
|
||||
vec![field.position],
|
||||
format!(
|
||||
"Cannot query field \"{}\" on type \"{}\".",
|
||||
field.name,
|
||||
ctx.current_type().name()
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Selection::FragmentSpread(fragment_spread) => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user