Skip to content

False positive warning about missing __typename #98

Description

@cmeeren

Consider this query:

query MyFavorites {
  me {
    favorites {
      item {
        __typename
        ... on Order {
          id
        }
      }
    }
  }
}

It fails with:

Missing required __typename on sub type Order of type FavoriteItem selected on field item

But __typename is included outside the fragment, on every type.

I can work around it by adding __typename inside ... on Order, but it should not be necessary.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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