Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Cannot query field "allSanityPost" on type "Query" #58

Open
bugduino opened this issue Apr 3, 2019 · 4 comments
Open

Cannot query field "allSanityPost" on type "Query" #58

bugduino opened this issue Apr 3, 2019 · 4 comments

Comments

@bugduino
Copy link

bugduino commented Apr 3, 2019

Hi,
I cloned the repo, followed the blog post here and added all the content in my local Sanity Studio as described in the article, but I keep getting Cannot query field "allSanityPost" on type "Query" when I run yarn start.
Any idea why?

Thank you

@ibanlopez
Copy link

ibanlopez commented Apr 4, 2019

Hi,

Same problem for me but I've followed a different configuration following https://www.sanity.io/blog/live-coding-with-gatsby-js-and-sanity-io-how-to-make-a-portfolio-website to the letter.

It's like graphiql did not know anything about the sanity studio schema.

I followed gatsby-source-sanity plugin instructions, set up sanity studio and schemas, deployed graphql API enabling Graphql playgroung which works as expected, but for Gatsby graphiql interface is like data did not exist.

I'm wondering if there's any step missing for me.

Thanks a lot.

@bugduino
Copy link
Author

bugduino commented Apr 4, 2019

I have recloned the repo today, yarn install, yarn run init (using the project and dataset that I already created) and after that yarn start shows no errors related to graphql. Did one of the last commit solved the issue?
Anyway there's still a little bug, I had to yarn add gatsby-react-router-scroll in the web/ folder to make it working, but now seems fine.

@zRelux
Copy link

zRelux commented Jan 2, 2020

Had the same issue but redeploying the graphql and deleting the .cache folder fixes it

@fullspectrumprocessing
Copy link

fullspectrumprocessing commented Mar 3, 2020

Hey guys Im getting this error too but deleting cache and redeploying graphql is not working.
Any other solutions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants