[Plugin Request] Wrap fields in StoreObject for Apollo Client #4730
Unanswered
bennypowers
asked this question in
General
Replies: 1 comment 2 replies
-
Thank you for this great suggestion, @bennypowers . I'm moving it to Discussions (we track plugins requests there) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
Hey Hey. Many new apollo client 3 methods expect an instance of
StoreObject
, which is exported from@apollo/client/cache
. The base type is__typename
, along with an index signature toStoreProperty
.Describe the solution you'd like
It would be cool if graphql-codegen would take an option to wrap types in
StoreObject
Describe alternatives you've considered
from chat:
dotansimha
Additional context
from chat:
Beta Was this translation helpful? Give feedback.
All reactions