Skip to content

Commit 28d26fc

Browse files
committed
fix introspection and FieldsOnCorrectType rule
bump 0.0.12
1 parent b9f9a52 commit 28d26fc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "graphql-tools"
3-
version = "0.0.11"
3+
version = "0.0.12"
44
edition = "2021"
55
description = "Tools for working with GraphQL in Rust, based on graphql-parser Document."
66
license = "MIT/Apache-2.0"

src/validation/rules/fields_on_correct_type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ impl<'a> TypeInfoQueryVisitor<ValidationErrorContext<'a>> for FieldsOnCorrectTyp
2323
let field_def = _type_info.get_field_def();
2424
match field_def {
2525
Some(TypeInfoElementRef::Empty) => {
26-
if _node.name.ne("__typename") {
26+
if !_node.name.starts_with("__") {
2727
_visitor_context.report_error(ValidationError {
2828
locations: vec![_node.position],
2929
message: format!(

0 commit comments

Comments
 (0)