Skip to content

Commit e36141f

Browse files
committed
Updated readme
1 parent 0c96e06 commit e36141f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,11 @@ Relay [specification for mutations](https://facebook.github.io/relay/graphql/mut
229229

230230
### Connection
231231

232-
You can use `@GraphQLConnection` annotation to make a field iterable in adherence to Relay [Connection specification](https://facebook.github.io/relay/graphql/connections.htm).
232+
You can use `@GraphQLConnection` annotation to make a field iterable in adherence to Relay [Connection specification](https://facebook.github.io/relay/graphql/connections.htm).\
233+
The default connection makes you fetch ALL the data, and then builds the connections object (ie edges and nodes).\
234+
If you want to fetch only the relevant data each time (with the "first","last","before" and "after" arguments)
235+
you should annotate you field with `@GraphQLConnection(connection = EnhancedConnectionFetcher.class)`,
236+
and make the associated data fetcher implements `PaginationDataFetcher`
233237

234238
### Customizing Relay schema
235239

0 commit comments

Comments
 (0)