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
You probably want a @relay(plural: true)
directive on your cards
query fragment. There is an example of a plural field in action in the Star Wars example in the Relay repo.
If you care about pagination, though, you probably want a connection instead of a plural field. Connections are described in the Relay docs and implemented in graphql-relay-js.