apollographql / apollographql/apollo-client-integrations

__typename field missing in suspense queries

Open
#256 22 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
556
Forks
53
PR merge metrics
No merged PRs in 30d

Description

In version 0.8.0: `__typename` in every type by default
In version 0.9.0: `__typename` missing by default, it's included only when specific type has explicit `__typename` field to resolve in operation

even with cache config option `addTypename: true`.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the difference between versions 0.8.0 and 0.9.0 using suspense queries and the cache option addTypename: true. Trace how __typename is added when no explicit field is requested, and confirm that the fix restores the documented default behavior without requiring an explicit __typename field.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, next.js, typescript
Domain
api, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.