|
51 | 51 | "description": "A flag to trigger codegen when there are changes in the specified GraphQL schemas.\n\nYou can either specify a boolean to turn it on/off or specify an array of glob patterns to add custom files to the watch.\n\nFor more details: https://graphql-code-generator.com/docs/getting-started/development-workflow#watch-mode",
|
52 | 52 | "anyOf": [{ "type": "array", "items": { "type": "string" } }, { "type": ["string", "boolean"] }]
|
53 | 53 | },
|
54 |
| - "watchConfig": { |
55 |
| - "description": "Allows overriding the behavior of watch to use stat polling over native file watching support.\n\nConfig fields have the same defaults and sematics as the identically named ones for chokidar.\n\nFor more details: https://graphql-code-generator.com/docs/getting-started/development-workflow#watch-mode", |
56 |
| - "type": "object", |
57 |
| - "properties": { "usePolling": { "type": "boolean" }, "interval": { "type": "number" } } |
58 |
| - }, |
59 | 54 | "ignoreNoDocuments": {
|
60 | 55 | "description": "A flag to suppress non-zero exit code when there are no documents to generate.",
|
61 | 56 | "type": "boolean"
|
|
292 | 287 | "description": "Automatically adds `__typename` field to the generated types, even when they are not specified\nin the selection set, and makes it non-optional\nDefault value: \"false\"",
|
293 | 288 | "type": "boolean"
|
294 | 289 | },
|
295 |
| - "dedupeFragments": { |
296 |
| - "description": "Removes fragment duplicates for reducing data transfer.\nIt is done by removing sub-fragments imports from fragment definition\nInstead - all of them are imported to the Operation node.\nDefault value: \"false\"", |
297 |
| - "type": "boolean" |
298 |
| - }, |
299 | 290 | "inlineFragmentTypes": {
|
300 | 291 | "description": "Whether fragment types should be inlined into other operations.\n\"inline\" is the default behavior and will perform deep inlining fragment types within operation type definitions.\n\"combine\" is the previous behavior that uses fragment type references without inlining the types (and might cause issues with deeply nested fragment that uses list types).\nDefault value: \"inline\"",
|
301 | 292 | "type": "string"
|
|
315 | 306 | "skipTypename": {
|
316 | 307 | "description": "Does not add `__typename` to the generated types, unless it was specified in the selection set.\nDefault value: \"false\"",
|
317 | 308 | "type": "boolean"
|
| 309 | + }, |
| 310 | + "dedupeFragments": { |
| 311 | + "description": "Removes fragment duplicates for reducing data transfer.\nIt is done by removing sub-fragments imports from fragment definition\nInstead - all of them are imported to the Operation node.\nDefault value: \"false\"", |
| 312 | + "type": "boolean" |
318 | 313 | }
|
319 | 314 | }
|
320 | 315 | },
|
|
653 | 648 | "type": "boolean",
|
654 | 649 | "description": "Will use `import type {}` rather than `import {}` when importing only types. This gives\ncompatibility with TypeScript's \"importsNotUsedAsValues\": \"error\" option\nDefault value: \"false\""
|
655 | 650 | },
|
656 |
| - "dedupeFragments": { |
657 |
| - "description": "Removes fragment duplicates for reducing data transfer.\nIt is done by removing sub-fragments imports from fragment definition\nInstead - all of them are imported to the Operation node.\nDefault value: \"false\"", |
658 |
| - "type": "boolean" |
659 |
| - }, |
660 | 651 | "inlineFragmentTypes": {
|
661 | 652 | "description": "Whether fragment types should be inlined into other operations.\n\"inline\" is the default behavior and will perform deep inlining fragment types within operation type definitions.\n\"combine\" is the previous behavior that uses fragment type references without inlining the types (and might cause issues with deeply nested fragment that uses list types).\n\"mask\" transforms the types for use with fragment masking. Useful when masked types are needed when not using the \"client\" preset e.g. such as combining it with Apollo Client's data masking feature.\nDefault value: \"inline\"",
|
662 | 653 | "type": "string"
|
|
850 | 841 | "type": "boolean",
|
851 | 842 | "description": "Will use `import type {}` rather than `import {}` when importing only types. This gives\ncompatibility with TypeScript's \"importsNotUsedAsValues\": \"error\" option\nDefault value: \"false\""
|
852 | 843 | },
|
853 |
| - "dedupeFragments": { |
854 |
| - "description": "Removes fragment duplicates for reducing data transfer.\nIt is done by removing sub-fragments imports from fragment definition\nInstead - all of them are imported to the Operation node.\nDefault value: \"false\"", |
855 |
| - "type": "boolean" |
856 |
| - }, |
857 | 844 | "inlineFragmentTypes": {
|
858 | 845 | "description": "Whether fragment types should be inlined into other operations.\n\"inline\" is the default behavior and will perform deep inlining fragment types within operation type definitions.\n\"combine\" is the previous behavior that uses fragment type references without inlining the types (and might cause issues with deeply nested fragment that uses list types).\n\"mask\" transforms the types for use with fragment masking. Useful when masked types are needed when not using the \"client\" preset e.g. such as combining it with Apollo Client's data masking feature.\nDefault value: \"inline\"",
|
859 | 846 | "type": "string"
|
|
1631 | 1618 | "type": "string",
|
1632 | 1619 | "description": "Defines the prefix value used for `__resolveType` and `__isTypeOf` resolvers.\nIf you are using `mercurius-js`, please set this field to empty string for better compatibility.\nDefault value: \"'__'\""
|
1633 | 1620 | },
|
1634 |
| - "generateInternalResolversIfNeeded": { |
1635 |
| - "type": "object", |
1636 |
| - "description": "If relevant internal resolvers are set to `true`, the resolver type will only be generated if the right conditions are met.\nEnabling this allows a more correct type generation for the resolvers.\nFor example:\n- `__isTypeOf` is generated for implementing types and union members\n- `__resolveReference` is generated for federation types that have at least one resolvable `@key` directive\nDefault value: \"{ __resolveReference: false }\"" |
1637 |
| - }, |
1638 |
| - "onlyResolveTypeForInterfaces": { |
1639 |
| - "type": "boolean", |
1640 |
| - "description": "Turning this flag to `true` will generate resolver signature that has only `resolveType` for interfaces, forcing developers to write inherited type resolvers in the type itself.\nDefault value: \"false\"" |
1641 |
| - }, |
1642 | 1621 | "resolversNonOptionalTypename": {
|
1643 | 1622 | "description": "Makes `__typename` of resolver mappings non-optional without affecting the base types.\nDefault value: \"false\"",
|
1644 | 1623 | "anyOf": [{ "$ref": "#/definitions/ResolversNonOptionalTypenameConfig" }, { "type": "boolean" }]
|
|
1677 | 1656 | "type": "boolean",
|
1678 | 1657 | "description": "Will use `import type {}` rather than `import {}` when importing only types. This gives\ncompatibility with TypeScript's \"importsNotUsedAsValues\": \"error\" option\nDefault value: \"false\""
|
1679 | 1658 | },
|
1680 |
| - "dedupeFragments": { |
1681 |
| - "description": "Removes fragment duplicates for reducing data transfer.\nIt is done by removing sub-fragments imports from fragment definition\nInstead - all of them are imported to the Operation node.\nDefault value: \"false\"", |
1682 |
| - "type": "boolean" |
1683 |
| - }, |
1684 | 1659 | "inlineFragmentTypes": {
|
1685 | 1660 | "description": "Whether fragment types should be inlined into other operations.\n\"inline\" is the default behavior and will perform deep inlining fragment types within operation type definitions.\n\"combine\" is the previous behavior that uses fragment type references without inlining the types (and might cause issues with deeply nested fragment that uses list types).\n\"mask\" transforms the types for use with fragment masking. Useful when masked types are needed when not using the \"client\" preset e.g. such as combining it with Apollo Client's data masking feature.\nDefault value: \"inline\"",
|
1686 | 1661 | "type": "string"
|
|
2716 | 2691 | "description": "Adds suffix to the fragment variable\nDefault value: \"\"",
|
2717 | 2692 | "type": "string"
|
2718 | 2693 | },
|
2719 |
| - "noGraphQLTag": { |
2720 |
| - "description": "Deprecated. Changes the documentMode to `documentNode`.\nDefault value: \"false\"", |
2721 |
| - "type": "boolean" |
2722 |
| - }, |
2723 | 2694 | "gqlImport": {
|
2724 | 2695 | "description": "Customize from which module will `gql` be imported from.\nThis is useful if you want to use modules other than `graphql-tag`, e.g. `graphql.macro`.\nDefault value: \"graphql-tag#gql\"",
|
2725 | 2696 | "type": "string"
|
|
2810 | 2781 | "type": "boolean",
|
2811 | 2782 | "description": "Will use `import type {}` rather than `import {}` when importing only types. This gives\ncompatibility with TypeScript's \"importsNotUsedAsValues\": \"error\" option\nDefault value: \"false\""
|
2812 | 2783 | },
|
2813 |
| - "dedupeFragments": { |
2814 |
| - "description": "Removes fragment duplicates for reducing data transfer.\nIt is done by removing sub-fragments imports from fragment definition\nInstead - all of them are imported to the Operation node.\nDefault value: \"false\"", |
2815 |
| - "type": "boolean" |
2816 |
| - }, |
2817 | 2784 | "inlineFragmentTypes": {
|
2818 | 2785 | "description": "Whether fragment types should be inlined into other operations.\n\"inline\" is the default behavior and will perform deep inlining fragment types within operation type definitions.\n\"combine\" is the previous behavior that uses fragment type references without inlining the types (and might cause issues with deeply nested fragment that uses list types).\n\"mask\" transforms the types for use with fragment masking. Useful when masked types are needed when not using the \"client\" preset e.g. such as combining it with Apollo Client's data masking feature.\nDefault value: \"inline\"",
|
2819 | 2786 | "type": "string"
|
|
0 commit comments