GraphQLBundle
GraphQLBundle copied to clipboard
Extending relay-connection
trafficstars
| Q | A |
|---|---|
| Bug report? | yes |
| Version/Branch | 0.11.1 |
The following definitions leads to an error
# TotalCountConnection.types.yaml
TotalCountConnection:
type: relay-connection
config:
connectionFields:
totalCount:
type: Int!
description: "Number of items in this collection"
# TestConnection.types.yaml
TestConnection:
type: TotalCountConnection
config:
nodeType: String
The error is Unrecognized option "_TotalCountConnection_config" under "overblog_graphql_types.TestConnection"
I'm trying to make a default connection type with the totalCount field to use whenever I need a connection with this field
Can you provide a full example of how you extends the connection meta type please?