@Target(value={FIELD,METHOD,TYPE})
@Retention(value=RUNTIME)
public @interface GraphQLConnection
GraphQLField) is a collection that will
be adhering Relay Connection specification
At the moment, the only allowed type for such field is List<?>| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
async
By default, the paginated data is fetched synchronously.
|
java.lang.Class<? extends ConnectionFetcher> |
connectionFetcher
By default, a paginated data connection is specified.
|
java.lang.Class<? extends graphql.relay.Relay> |
connectionType
By default, the relay connection that the container has is used.
|
java.lang.String |
name
By default, wrapped type's name is used for naming TypeConnection, but can be overridden
using this property
|
java.lang.Class<? extends ConnectionValidator> |
validator
By default, the the validator validates a paginated data connection.
|
public abstract java.lang.Class<? extends ConnectionFetcher> connectionFetcher
public abstract java.lang.String name
public abstract java.lang.Class<? extends ConnectionValidator> validator
public abstract boolean async
public abstract java.lang.Class<? extends graphql.relay.Relay> connectionType
Relay class and specify it.