strapi-legacy-gatsby-blog icon indicating copy to clipboard operation
strapi-legacy-gatsby-blog copied to clipboard

GraphQL Issue

Open MaxReinmueller opened this issue 4 years ago • 2 comments

Thank you for making this tutorial I am really enjoying it!

I am working on the Article page section of the tutorial and am getting the following error. I am having trouble finding how to resolve the error.

Failed to Compile

Multiple "root" queries found: "ArticleQuery" and "ArticleQuery". Only the first ("ArticleQuery") will be registered. File: /frontend/src/templates/article.js

I appreciate any help you can give.

MaxReinmueller avatar Jun 16 '20 17:06 MaxReinmueller

Everything is working on my side, can you confirm that:

  • Your Strapi instance is running
  • You have at least one category and one article
  • You have checked the find and findOne permissions for all the collection type?

Mcastres avatar Jun 25 '20 15:06 Mcastres

Hi Mcastres,

Thank you for your response. Yes to everything you asked. I attached screen shots so you can see what I see.

I also attached a screen shot of the error I am getting in my terminal when I start my frontend server. The error has more information than what I was getting in my browser.

article caregory error premissions

Thanks again for the help!

MaxReinmueller avatar Jun 25 '20 15:06 MaxReinmueller