Skip to content

Commit

Permalink
fix release (#2300)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR committed Nov 30, 2020
1 parent adcaa31 commit 21da690
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .changeset/calm-schools-turn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@graphql-tools/wrap': patch
'@graphql-tools/schema': patch
'@graphql-tools/stitch': patch
'@graphql-tools/stitching-directives': major
'@graphql-tools/utils': patch
---

fix release
4 changes: 2 additions & 2 deletions packages/wrap/src/transforms/TransformCompositeFields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ export default class TransformCompositeFields implements Transform {

// See https://github.com/ardatan/graphql-tools/issues/2282
if (
(this.subscriptionTypeName && parentTypeName !== this.subscriptionTypeName && this.dataTransformer != null) ||
this.errorsTransformer != null
(this.dataTransformer != null || this.errorsTransformer != null) &&
(this.subscriptionTypeName == null || parentTypeName !== this.subscriptionTypeName)
) {
newSelections.push({
kind: Kind.FIELD,
Expand Down

0 comments on commit 21da690

Please sign in to comment.