Relay connections & edges are just regular GraphQL type with required fields.
This bundle provide Fields builder (@see Fields Builder) to generate Relay connections & edges.
Defined in RelayConnectionFieldsBuilder
you can use this fields builder as follow:
FriendsConnection:
type: object
config:
builders:
- builder: relay-connection
builderConfig:
edgeType: FriendsConnectionEdge
See the class definition for additionnal configuration
Defined in RelayConnectionFieldsBuilder
you can use this fields builder as follow:
FriendsConnectionEdge:
type: object
config:
builders:
- builder: relay-edge
builderConfig:
nodeType: Character
See the class definition for additionnal configuration