Ошибка плагина Gatsby Graph QL - правильный запрос совпадает с неправильным - PullRequest
1 голос
/ 14 июля 2020

Имеются некоторые проблемы с моим Graph QL, надеюсь, что кто-то может помочь мне (да, я уже много погуглил и исправил часть ошибки)

My app is saying the query is wrong and the expected is the same query that is wrong. I think it is how the query is structured.

const useBlogPosts = () => {
  const data = useStaticQuery(
    graphql`
      query {
        allContentfulContentType(sort: { order: DESC, fields: ContentfulContentTypeFieldsEnum}) {
          edges {
            node {
              title
              author {
                name
              }
              ContentfulContentTypeFieldsEnum
              body {
                childMarkdownRemark {
                  html
                }
              }
              heroImage {
                fluid(maxWidth: 960) {
                  ...GatsbyContentfulFluid_withWebp
                }
              }
            }
          }
        }
      }
    `
  );
  return data;
};
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...