Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add failing test for #916 #917

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
type Query {
me: User
}
type User {
name: String
}

query Invalid { me { name { reviews { body } } } }
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Error: field selection of scalar type `String` must not have subselections
╭─[0119_nested_subselection_issue_916.graphql:8:22]
8 │ query Invalid { me { name { reviews { body } } } }
│ ────────────┬────────────
│ ╰────────────── remove subselections here
│ Note: path to the field: `query Invalid → me → name`
───╯

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
type Query {
me: User
}

type User {
name: String
}

query Invalid {
me {
name {
reviews {
body
}
}
}
}