GraphQLBundle icon indicating copy to clipboard operation
GraphQLBundle copied to clipboard

Extending relay-connection

Open sylfabre opened this issue 7 years ago • 1 comments
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

sylfabre avatar Jun 06 '18 14:06 sylfabre

Can you provide a full example of how you extends the connection meta type please?

mcg-web avatar Jun 08 '18 09:06 mcg-web