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

prefixTypenames doesn't work with fragments? #437

Open
danomatic opened this issue Oct 17, 2023 · 0 comments
Open

prefixTypenames doesn't work with fragments? #437

danomatic opened this issue Oct 17, 2023 · 0 comments

Comments

@danomatic
Copy link

danomatic commented Oct 17, 2023

When using this with fragments and prefixTypenames: true, I end up getting an empty object without any of the fields from the fragments. The network result will include all the id and name values, but the object returned from the Apollo client will not. Is there anything special that we need to add to make those work?

Example:

query myQuery @api(name: myApi) {
    clusterRangeQuery {
        graphId
        clusters {
            ...Cluster
        }
        edges {
            source
            target
        }
    }
}

fragment Cluster on Cluster {
    id
    label
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant