Include __typename on auto-generated queries #3481
mAAdhaTTah
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Have exactly the same issue, given that this discussion is over a year old with no comments I'm now feeling disheartened. Did you find a way around this? My next approach is just duck typing and casting but this seems suboptimal. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a Post type with several templates at the root. When using the built in
postConnection
query, the__typename
of those posts isn't included in the response, which makes it impossible to switch behaviors based on the different templates. It appears to be included correct when the templates are for a given field (e.g. array of blocks-style setups) but not when it's at the root of the collection.Can this be added?
ETA: Would be happy to contribute a PR here too if it would be accepted.
Beta Was this translation helpful? Give feedback.
All reactions