graphql-inspector
graphql-inspector copied to clipboard
Wrongly formatted documents are still indicated as valid.
Describe the bug
When using graphql-inspector validate './*.graphql', syntax errors are ignored and documents are indicated as “valid”.
Valid querry :
query test {
me {
id
}
}
Result : success All documents are valid
Now if I change .graphql like that :
query test {
me { 90[][]iopu7tiugbvm
id
}
}
The result still syays that "success All documents are valid" Expected result : Some error.
But If instead I add a non existing column, I get the right error :
- Cannot query field notExisting on type Ressource.