graphql-inspector icon indicating copy to clipboard operation
graphql-inspector copied to clipboard

Wrongly formatted documents are still indicated as valid.

Open jurion opened this issue 3 years ago • 0 comments

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.

jurion avatar Oct 29 '21 21:10 jurion