@graphql-codegen/visitor-plugin-common 7.2.3 → 7.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -702,11 +702,12 @@ class SelectionSetToObject {
|
|
|
702
702
|
else if (this._config.inlineFragmentTypes === 'mask') {
|
|
703
703
|
fields.push(`{ ' $fragmentRefs'?: { ${fragmentsSpreadUsages
|
|
704
704
|
.map(name => {
|
|
705
|
+
// FIXME: https://github.com/dotansimha/graphql-code-generator/pull/10904/changes#r3729881814
|
|
705
706
|
// A conditional (`@skip`/`@include`) masked spread may be absent,
|
|
706
707
|
// so its data is wrapped in `Partial`.
|
|
707
|
-
if (options.partialTypes) {
|
|
708
|
-
|
|
709
|
-
}
|
|
708
|
+
// if (options.partialTypes) {
|
|
709
|
+
// return `'${name}': Partial<${name}>`;
|
|
710
|
+
// }
|
|
710
711
|
if (options.unsetTypes) {
|
|
711
712
|
return `'${name}': Incremental<${name}>`;
|
|
712
713
|
}
|
|
@@ -698,11 +698,12 @@ export class SelectionSetToObject {
|
|
|
698
698
|
else if (this._config.inlineFragmentTypes === 'mask') {
|
|
699
699
|
fields.push(`{ ' $fragmentRefs'?: { ${fragmentsSpreadUsages
|
|
700
700
|
.map(name => {
|
|
701
|
+
// FIXME: https://github.com/dotansimha/graphql-code-generator/pull/10904/changes#r3729881814
|
|
701
702
|
// A conditional (`@skip`/`@include`) masked spread may be absent,
|
|
702
703
|
// so its data is wrapped in `Partial`.
|
|
703
|
-
if (options.partialTypes) {
|
|
704
|
-
|
|
705
|
-
}
|
|
704
|
+
// if (options.partialTypes) {
|
|
705
|
+
// return `'${name}': Partial<${name}>`;
|
|
706
|
+
// }
|
|
706
707
|
if (options.unsetTypes) {
|
|
707
708
|
return `'${name}': Incremental<${name}>`;
|
|
708
709
|
}
|
package/package.json
CHANGED