Anton
V.
Projects and
blogs
Random
GraphQL Validator
GraphQL Validator
GraphQL schema (SDL)
type Query { user(username: String): User } type User { username: String! friends: [User!]! }
1
type
Query
{
2
user
(
username
:
String
):
User
3
}
4
5
type
User
{
6
username
:
String
!
7
friends
: [
User
!]!
8
}
GraphQL query
query { user(username: "alice") { friends { username } } }
1
query
{
2
user
(
username
:
"alice"
) {
3
friends
{
4
username
5
}
6
}
7
}
Clear
Validation result
The GraphQL query validates successfully against the provided schema.
GraphQL Validator