Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Apollo Client adds __typename at the end of the type while apollo CLI adds at the top of the type #1229

Open
Nikhilkoneru opened this issue Sep 6, 2021 · 0 comments

Comments

@Nikhilkoneru
Copy link

Nikhilkoneru commented Sep 6, 2021

Hi Team, I have noticed that when I used PersistedQueryLink, Apollo Client adds __typename at the bottom of the type whereas when I use apollo-cli:codegen adds __typename and the top of the type. Can we have the same consistency as Apollo Client because the position of __typename field changes the hash?

npx apollo client:codegen --target=json operations.json

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant