Skip to content

prefixTypenames doesn't work with fragments? #437

Description

@danomatic

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions