graphql/codegen/plugins/presets/preset-client #8884
Replies: 7 comments
-
Can you nested fragments on the same type as the parent? example here: charlypoly/codegen-repros#1 |
Beta Was this translation helpful? Give feedback.
-
how to use client preset in server components ? |
Beta Was this translation helpful? Give feedback.
-
How to refetch a specific fragment based on user interaction? |
Beta Was this translation helpful? Give feedback.
-
Conditional and infer types doesn't working with vue and typescript, vite-vue-plugin. [vite] Internal server error: [@vue/compiler-sfc] Unresolvable type: TSConditionalType
src/gql/fragment-masking.ts
4 |
5 |
6 | export type FragmentType<TDocumentType extends DocumentTypeDecoration<any, any>> = TDocumentType extends DocumentTypeDecoration<
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 | infer TType,
| ^^^^^^^^^^^^^^
8 | any
| ^^^^^
9 | >
| ^
10 | ? [TType] extends [{ ' $fragmentName'?: infer TKey }]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11 | ? TKey extends string
| ^^^^^^^^^^^^^^^^^^^^^^^^^
12 | ? { ' $fragmentRefs'?: { [key in TKey]: TType } }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 | : never
| ^^^^^^^^^^^^^
14 | : never
| ^^^^^^^^^^^
15 | : never;
| ^^^^^^^^^ |
Beta Was this translation helpful? Give feedback.
-
Is there potential for an Amplify AppSync connection? |
Beta Was this translation helpful? Give feedback.
-
I'd like to be able to separate the destination folder of the
But ideally I would have only one NOTE: |
Beta Was this translation helpful? Give feedback.
-
I really like the idea of fragment masking. Using Apollo's |
Beta Was this translation helpful? Give feedback.
-
graphql/codegen/plugins/presets/preset-client
GraphQL Code Generator Documentation
https://the-guild.dev/graphql/codegen/plugins/presets/preset-client
Beta Was this translation helpful? Give feedback.
All reactions