Skip to content

WrapFields Incompatibility with Subscriptions #2282

@tylermenezes

Description

@tylermenezes

It seems like adding a WrapFields transform to a schema causes all emitted queries to include the following root selection:

{ kind: 'Field', name: { kind: 'Name', value: '__typename' } }

This causes all subscriptions to fail (because of the restriction against having more than one root field in a subscription). This is true even though the WrapFields transform isn't wrapping anything related to a Subscription.

Am I doing something totally wrong here, or is there a known way around this? If it's a new bug I can try to come up with a stand-alone reproduction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions