Skip to content

missing __typename in interfaces #1485

Description

@macrozone

I am using graphql-request 7.1.2 (will try 7.4.0 soon) together with the (amazing) gql-tada.

however there is one minor problem:

  • graphql-request does not fetch __typename in general
  • gql.tada also does not assume that you fetch __typename, but with one exception: interfaces (and unions).

This leads to the situation that the types differ from the actual runtime data, which can lead to runtime errors.

see 0no-co/gql.tada#508

is there an option to fetch __typename automatically?

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions