title: React GraphQL Relay - How to do a simple query?
body: <p><strong>The Goal:</strong> </p>
  
  <p>I'm trying to query a specific character from a <a href="https://github.com/neelance/graphql-go/tree/master/example/starwars" rel="noreferrer">GraphQL server</a> with relay.</p>
  
  <p><strong>The Problem:</strong></p>
  
  <p>The query works in GraphiQL. But here, when running <code>"relay-compiler": "^1.4.1"</code> I'm getting...</p>
  
  <blockquote>
    <p>ERROR: Parse error: Error: FindGraphQLTags: Operation names in graphql
    tags must be prefixed with the module name and end in "Mutation",
    "Query", or "Subscription". Got <code>clientQuery</code> in module <code>Jedi</code>. in
    "components/Jedi.js"</p>
  </blockquote>
  
  <p><strong>The Question:</strong></p>
  
  <p>Can't I just query that specific character like in GraphiQL ? How can I achieve this?</p>
  
  <p><strong>The Code:</strong></p>
  
  <pre class="lang-jsx prettyprint-override"><code>import React from 'react'
  import { QueryRenderer, graphql } from 'react-relay'
  
  const BlogPostPreview = props =&gt; {
   return (
     &lt;div key={props.post.id}&gt;{props.post.name}&lt;/div&gt;
   )
  }
  
  export default QueryRenderer(BlogPostPreview, {
  post: graphql`
           query clientQuery {
             character(id: 1000) {
               id
               name
               appearsIn
            }
          }
      `
  })
  </code></pre>