graphene django relay: Relay transform error
<p>Being very new to GraphQL, I have a graphene django implementation of a server with two models, following rather closely the <a href="http://docs.graphene-python.org/projects/django/en/latest/tutorial.html" rel="nofollow">graphene docs' example</a>.</p>

<p>In graphiql, I can do this, and get a result back.</p>

<p><a href="https://i.stack.imgur.com/TUy48.png" rel="nofollow"><img src="https://i.stack.imgur.com/TUy48.png" alt="enter image description here"></a></p>

<p>Following another <a href="https://medium.com/@clayallsopp/relay-101-building-a-hacker-news-client-bb8b2bdc76e6#.vephqa6ww" rel="nofollow">relay tutorial</a>, I'm intending to render the result of this query on screen.</p>

<p>My attempt looks like this:</p>

<pre><code>class Note extends Component {
  render() {
    return(
      &lt;div&gt; {this.props.store.title} &lt;/div&gt;
    )
  }
}

Note = Relay.createContainer(Note, {
  fragments: {
    store: () =&gt; Relay.QL`
      fragment on Query {
        note(id: "Tm90ZU5vZGU6MQ==") {
          id
          title
        }
      }
    `
  }
});

class NoteRoute extends Relay.Route {
  static routeName = 'NoteRoute';
  static queries = {
    store: Component =&gt; {

      return Relay.QL`
      query {
        ${Component.getFragment('store')}
      }
    `},
  };
}
</code></pre>

<p>My browser's console shows the following error:</p>

<p><code>Uncaught Error: Relay transform error ``There are 0 fields supplied to the query named `Index`, but queries must have exactly one field.`` in file `/Users/.../src/index.js`. Try updating your GraphQL schema if an argument/field/type was recently added.
</code></p>

<p>I've been trying to figure it out on my own with limited success.</p>

<p>Can someone point me in the right direction?</p>

<p>Thanks @stubailo for pointing me in the right direction. I made some adjustments, and now have a minimum example running like this:</p>

<pre><code>NoteList = Relay.createContainer(NoteList, {
  fragments: {
    store: () =&gt; Relay.QL`
      fragment N on NoteNodeConnection {
        edges {
          node{
            id
            title
            note
          }
        }
      }
    `
  }
});

class NoteRoute extends Relay.Route {
  static routeName = 'NoteRoute';
  static queries = {
    store: Component =&gt; {

      return Relay.QL`
      query {
        notes {
          ${Component.getFragment('store')}
        }
      }
    `},
  };
}
</code></pre>

python django reactjs graphql relay