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

Why graphql returns undefined whereas GraphiQL returns something? #9884

Closed
Steffi3rd opened this issue Nov 12, 2018 · 3 comments · May be fixed by ajesse11x/gatsby#424, saurabharch/gatsby#379, MaxMood96/gatsby#30 or saurabharch/gatsby#2051

Comments

@Steffi3rd
Copy link

Steffi3rd commented Nov 12, 2018

console.log(data) returns undefined

capture d ecran 2018-11-12 a 13 53 41

GraphiQL

capture d ecran 2018-11-12 a 13 54 11

@Steffi3rd
Copy link
Author

I tried alternative with StaticQuery and it worked.

I don't know why it doesn't work without StaticQuery

Someone can help please?

@LekoArts
Copy link
Contributor

Please open an issue following the issue template (as I already told you). Otherwise we cannot help you. The issue template exists for a reason.

@Steffi3rd
Copy link
Author

Please open an issue following the issue template (as I already told you). Otherwise we cannot help you. The issue template exists for a reason.

#9885

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment