Multiple Queries share same data types #1074
-
Hi, I would like to re-use fragments within multiple queries. Is there any possibility to do this? Any help would be highly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hello 👋 |
Beta Was this translation helpful? Give feedback.
-
Kobby plugin generates DSL client that provides an ability to reuse generated classes |
Beta Was this translation helpful? Give feedback.
Hello 👋
Unfortunately currently it is not possible to share any output types. With the latest changes (
4.0.0-alpha.15
) our generator was updated to allow sharing input objects, enums and custom scalars as they will always be the same across ALL operations. Output object types, interfaces and unions are always regenerated for each specified query/mutation as they can vary in their selection sets.