Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GraphQL query failure

See original GitHub issue

Hey Dustin!

First off, wanted to thank you for taking the time to write your blog post on getting a Gatsby blog setup. It was helpful to have some sort of path to creating something working.

Got a question for you though:

query BlogPostByPath($path: String!) {

When I put this query inside the graphql debugger, it was returning an error for me because it couldn’t find $path. However, when I removed the ! it worked.

query BlogPostByPath($path: String) {

Could you explain why there is a ! there?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

bencodezencommented, Aug 29, 2017

@DSchau Ah. I think I see what happened. You provided a Query Variable in the debugger. I didn’t even see that section when I was using the debugger. I just assumed that it would actually query the file system instead of depending on the variable.

Thanks for the response!

DSchaucommented, Aug 29, 2017

No problem!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error handling - Apollo GraphQL Docs
A client sent the hash of a query string to execute via automatic persisted queries, but the server has disabled APQ. OPERATION_RESOLUTION_FAILURE. The...
Read more >
A Guide to GraphQL Errors
GraphQL errors encode exceptional scenarios - like a service being down or some other internal failure. Errors which are part of the API ......
Read more >
Top GraphQL Errors and How to fix them
GraphQL is strongly typed and it performs validation of all queries before executing them. It can reject a query if it is invalid...
Read more >
GraphQL error handling to the max with Typescript, codegen ...
A GraphQL API will always return a 200 OK Status Code, even in case of error. You'll get a 5xx error in case...
Read more >
Error Handling in GraphQL - DEV Community ‍ ‍
GraphQL servers are able to handle errors by default, both for syntax and validations errors. But often this is not sufficient for more ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found