[client-preset] optional `' $fragmentName'` property
See original GitHub issueexport type UserFieldsFragment = { __typename?: 'User', id: string, email: string, fullName: string, displayName: string, provider: AuthProvider, isAdmin: boolean }
& { ' $fragmentName': 'UserFieldsFragment' };
The following:
{ ' $fragmentName': 'UserFieldsFragment' }
Should be:
{ ' $fragmentName'?: 'UserFieldsFragment' }
Issue Analytics
- State:
- Created a year ago
- Comments:8
Top Results From Across the Web
client-preset - GraphQL Code Generator
The client-preset provides typed GraphQL operations (Query, Mutation and Subscription) by perfectly integrating with your favorite GraphQL ...
Read more >Fragments - Apollo GraphQL Docs
This object maps the name of an interface or union type (the supertype) to the types that implement or belong to it (the...
Read more >ZakKa89 (ZakKa89) - PullAnswer
ZakKa89 · Can't get graphql-tag-operations to work with server-side apollo query. · [client-preset] optional `' $fragmentName'` property · [client-preset] optional ...
Read more >S-Index (Oracle Fusion Middleware Java API Reference for ...
A list iterator implementation based on a static array. SafeArrayList.SafeListIterator(int, Object[]) - Constructor for class oracle.javatools.buffer.
Read more >Difference between object attributes in graphql and sdk - braintree ...
Hi, I wonder if there is a way to retrieve the exact same attribute from ... [client-preset] optional `' $fragmentName'` property 5 open...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thank you I will try the new client preset. That might also solve this issue https://github.com/dotansimha/graphql-code-generator/issues/8474
Hi @ZakKa89,
The fragment type is wrapped in a
TypedDocumentNode<R,V>
type, making it impossible to directly extract the inner type (the actual fragment type):You are right, we only updated the guides for now: https://www.the-guild.dev/graphql/codegen/docs/guides/react-vue We plan to update the doc of
gql-tag-operations
and deprecate is onnpm
in the upcoming weeks.