title: How to get RelayJS to understand that a response from GraphQL is an array of items, not just a single item
body: <p>I have a GraphQL server running with a schema roughly like this:</p>
  
  <pre><code>type Card {
    id: String!
    name: String
  }
  
  type Query {
    card(name: String!): Card
    cards(power: String): [Card]
  }
  </code></pre>
  
  <p>Notice that I have a query on a single card, but also on multiple cards. When I use the GraphIQl UI and make a query like this "query {cards { name }}" I get back an array of cards, as expected.</p>
  
  <p>However, I have a RelayContainer that is making the same query, but the props that come back are just the first result, rather than an array of results.</p>
  
  <pre class="lang-js prettyprint-override"><code>class MyApp extends React.Component {
    render() {
      return (
        &lt;div&gt;
          &lt;h1&gt; Hello world!&lt;/h1&gt;
          &lt;CardList cards={this.props.cards} /&gt;
        &lt;/div&gt;
      );
    }
  }
  
  export default Relay.createContainer(MyApp, {
    fragments: {
      card: () =&gt; Relay.QL`
        fragment on Card {
          name
        }
      `,
      cards: () =&gt; Relay.QL`
        fragment on Card {
          ${CardList.getFragment('cards')}
        }
      `
    },
  });
  </code></pre>
  
  <p>and the CardList component is set up with the Container like this:</p>
  
  <pre class="lang-js prettyprint-override"><code>class CardList extends React.Component {
    render() {
      return &lt;div&gt;{this.props.cards}&lt;/div&gt; // UNEXPECTED - this.props.cards is the first card, not an array for me to .map over
    }
  }
  
  export default Relay.createContainer(CardList, {
    fragments: {
      cards: () =&gt; Relay.QL`
        fragment on Card {
          name
        }
      `,
    },
  });
  </code></pre>
  
  <p>Anybody have any suggestions? This is day 2 of me diving into GraphQL and Relay, so I might be making a very basic mistake for all I know.</p>