kamilkisiela / apollo-angular

A fully-featured, production ready caching GraphQL client for Angular and every GraphQL server 🎁
https://apollo-angular.com
MIT License
1.5k stars 311 forks source link

Mentioned __typename in mock data #2216

Closed mpflanzer closed 7 months ago

mpflanzer commented 7 months ago

If fragments are used the mock data needs to specify the __typename. Otherwise the received object is empty.

See this discussion: https://github.com/kamilkisiela/apollo-angular/issues/1624

changeset-bot[bot] commented 7 months ago

⚠️ No Changeset found

Latest commit: 867df4b68f5347d6a5a8002efab9b97c37ef2795

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR