{"action":"closed","issue":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/6443","repository_url":"https://api.github.com/repos/gatsbyjs/gatsby","labels_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/6443/labels{/name}","comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/6443/comments","events_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/6443/events","html_url":"https://github.com/gatsbyjs/gatsby/issues/6443","id":341154270,"node_id":"MDU6SXNzdWUzNDExNTQyNzA=","number":6443,"title":"GraphQL query fails in 2.0.0-beta.21 and later with   Expected value of type \"ContentfulCategory\" but got: [object Object].","user":{"login":"szimek","id":9873,"node_id":"MDQ6VXNlcjk4NzM=","avatar_url":"https://avatars1.githubusercontent.com/u/9873?v=4","gravatar_id":"","url":"https://api.github.com/users/szimek","html_url":"https://github.com/szimek","followers_url":"https://api.github.com/users/szimek/followers","following_url":"https://api.github.com/users/szimek/following{/other_user}","gists_url":"https://api.github.com/users/szimek/gists{/gist_id}","starred_url":"https://api.github.com/users/szimek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szimek/subscriptions","organizations_url":"https://api.github.com/users/szimek/orgs","repos_url":"https://api.github.com/users/szimek/repos","events_url":"https://api.github.com/users/szimek/events{/privacy}","received_events_url":"https://api.github.com/users/szimek/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-07-13T20:45:08Z","updated_at":"2018-07-15T01:53:16Z","closed_at":"2018-07-15T01:53:16Z","author_association":"CONTRIBUTOR","body":"## Description\r\n\r\nAfter updating my app from `gatsby@2.0.0-beta.20` to `21`, I'm getting the following errors (many, many times) when I run `gatsby develop` or `gatsby build`:\r\n```\r\nThe GraphQL query from /Users/.../blog/src/templates/PostPage.js failed.\r\n\r\nErrors:\r\n  Expected value of type \"ContentfulCategory\" but got: [object Object].\r\n\r\n  GraphQL request (60:7)\r\n  59:     edges {\r\n  60:       node {\r\n            ^\r\n  61:         categoryId\r\n```\r\n\r\nIt's also broken in the latest `beta.34`. The query itself in the page component looks like this:\r\n```\r\n  query PostQuery($locale: String!, $postId: String!) {\r\n    source: contentfulPost(...) {...}\r\n\r\n    sourceTranslations: allContentfulPost(...) {...}\r\n\r\n    allCategories: allContentfulCategory(\r\n      filter: { node_locale: { eq: $locale } }\r\n    ) {\r\n      edges {\r\n        node {\r\n          categoryId\r\n          name\r\n          slug\r\n          description\r\n          node_locale\r\n        }\r\n      }\r\n    }\r\n```\r\nIt fails in GraphiQL as well.\r\n\r\n### Steps to reproduce\r\n\r\nNot sure :/\r\n\r\n### Environment\r\n```\r\n  System:\r\n    OS: macOS High Sierra 10.13.5\r\n    CPU: x64 Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz\r\n    Shell: 3.2.57 - /bin/bash\r\n  Binaries:\r\n    Node: 10.6.0 - /usr/local/bin/node\r\n    Yarn: 1.7.0 - /usr/local/bin/yarn\r\n    npm: 6.1.0 - /usr/local/bin/npm\r\n  Browsers:\r\n    Chrome: 68.0.3440.59\r\n    Firefox: 62.0\r\n    Safari: 11.1.1\r\n  npmGlobalPackages:\r\n    gatsby-cli: 1.1.52\r\n    gatsby-dev-cli: 1.2.12\r\n```\r\n\r\n### Dependencies\r\n```\r\n$ yarn list --pattern gatsby\r\nyarn list v1.7.0\r\n├─ gatsby-cli@2.0.0-beta.6\r\n├─ gatsby-link@2.0.0-beta.4\r\n├─ gatsby-pagination@1.2.0\r\n├─ gatsby-plugin-page-creator@2.0.0-beta.4\r\n├─ gatsby-plugin-postcss@1.0.0\r\n├─ gatsby-plugin-react-helmet@3.0.0-beta.3\r\n├─ gatsby-plugin-sharp@2.0.0-beta.5\r\n├─ gatsby-plugin-sitemap@2.0.0-beta.2\r\n├─ gatsby-react-router-scroll@2.0.0-beta.2\r\n├─ gatsby-source-contentful@2.0.1-beta.13\r\n├─ gatsby-transformer-remark@2.1.1-beta.3\r\n└─ gatsby@2.0.0-beta.21\r\n```"}}
{"actor":{"display_login":"KyleAMathews"}}