{"action":"closed","issue":{"url":"https://api.github.com/repos/GraphCMS/gatsby-source-graphcms/issues/51","repository_url":"https://api.github.com/repos/GraphCMS/gatsby-source-graphcms","labels_url":"https://api.github.com/repos/GraphCMS/gatsby-source-graphcms/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/GraphCMS/gatsby-source-graphcms/issues/51/comments","events_url":"https://api.github.com/repos/GraphCMS/gatsby-source-graphcms/issues/51/events","html_url":"https://github.com/GraphCMS/gatsby-source-graphcms/issues/51","id":330899020,"node_id":"MDU6SXNzdWUzMzA4OTkwMjA=","number":51,"title":"Unknown field `allCurrentEvents` on type `RootQueryType`","user":{"login":"akalogiros","id":10164788,"node_id":"MDQ6VXNlcjEwMTY0Nzg4","avatar_url":"https://avatars3.githubusercontent.com/u/10164788?v=4","gravatar_id":"","url":"https://api.github.com/users/akalogiros","html_url":"https://github.com/akalogiros","followers_url":"https://api.github.com/users/akalogiros/followers","following_url":"https://api.github.com/users/akalogiros/following{/other_user}","gists_url":"https://api.github.com/users/akalogiros/gists{/gist_id}","starred_url":"https://api.github.com/users/akalogiros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akalogiros/subscriptions","organizations_url":"https://api.github.com/users/akalogiros/orgs","repos_url":"https://api.github.com/users/akalogiros/repos","events_url":"https://api.github.com/users/akalogiros/events{/privacy}","received_events_url":"https://api.github.com/users/akalogiros/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-06-09T16:06:53Z","updated_at":"2018-06-20T15:31:04Z","closed_at":"2018-06-20T15:31:04Z","author_association":"NONE","body":"Hello everyone,\r\n\r\ni have created a graphcms endpoint and trying to fetch some data from there and show them in a demo website.\r\n\r\nin my gatsby config i have the following setup:\r\n\r\n```\r\nmodule.exports = {\r\n  siteMetadata: {\r\n    title: 'Gatsby Default Starter',\r\n  },\r\n  plugins: [\r\n  {\r\n    resolve: `gatsby-source-graphcms`,\r\n    options: {\r\n      endpoint: `https://api.graphcms.com/simple/v1/MYENDPOINT`,\r\n      token: `MYTOKEN`,\r\n      query: `{\r\n          allCurrentEvents {\r\n          \ttip\r\n               awayteam\r\n               hometeam\r\n               date\r\n          }\r\n      }`,\r\n    },\r\n  }\r\n],\r\n}\r\n```\r\n\r\nfrom this setup i wanna fetch the tip,awayteam,hometeam & date and parse them to my site.\r\n\r\nMy problem is at index.js file where i have the below setup:\r\n\r\n```\r\nimport React from 'react'\r\nimport PropTypes from 'prop-types'\r\nimport Helmet from 'react-helmet'\r\n\r\nimport Header from '../components/header'\r\nimport './index.css'\r\n\r\nconst Layout = ({ children, data }) => (\r\n  <div>\r\n    <Helmet\r\n      title={data.site.siteMetadata.title}\r\n      meta={[\r\n        { name: 'description', content: 'Sample' },\r\n        { name: 'keywords', content: 'sample, something' },\r\n      ]}\r\n    />\r\n    <Header siteTitle={data.site.siteMetadata.title} />\r\n    <Header siteTitle={data.site2.allCurrentEvents.tip} /> //trying to show my data here\r\n    <div\r\n      style={{\r\n        margin: '0 auto',\r\n        maxWidth: 960,\r\n        padding: '0px 1.0875rem 1.45rem',\r\n        paddingTop: 0,\r\n      }}\r\n    >\r\n      {children()}\r\n    </div>\r\n  </div>\r\n)\r\n\r\nLayout.propTypes = {\r\n  children: PropTypes.func,\r\n}\r\n\r\nexport default Layout\r\n\r\nexport const query = graphql`\r\n  query SiteTitleQuery {\r\n    site {\r\n      siteMetadata {\r\n        title\r\n      }\r\n    }\r\n  }\r\n`\r\nexport const query2 = graphql`   //problematic query\r\n  query SiteTitleQuery2 {\r\n            allCurrentEvents{\r\n              tip\r\n            } \r\n        }\r\n`\r\n```\r\ni am getting the following error\r\n\r\n`GraphQL Error Unknown field `allCurrentEvents` on type `RootQueryType``\r\n\r\nany ideas?\r\n\r\nbest,\r\na."}}
{"actor":{"display_login":"hmeissner"}}