Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extending relay-connection #342

Open
sylfabre opened this issue Jun 6, 2018 · 1 comment
Open

Extending relay-connection #342

sylfabre opened this issue Jun 6, 2018 · 1 comment
Labels

Comments

@sylfabre
Copy link
Contributor

sylfabre commented Jun 6, 2018

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

@mcg-web
Copy link
Member

mcg-web commented Jun 8, 2018

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

@mcg-web mcg-web added the bug label Jun 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants