How to get RelayJS to understand that a response from GraphQL is an array of items, not just a single item
问题 I have a GraphQL server running with a schema roughly like this: type Card { id: String! name: String } type Query { card(name: String!): Card cards(power: String): [Card] } 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. However, I have a RelayContainer that is making the same query, but the props that come back are just the first result, rather