-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(typescript-operations): Import type definitions of dependent frag…
…ments when `inlineFragmentType` is `mask` (#7799) * Import type definitions of dependent fragments when `inlineFragmentType` is `mask` * Add changeset
- Loading branch information
1 parent
2966686
commit 9312920
Showing
5 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@graphql-codegen/typescript-operations': patch | ||
--- | ||
|
||
Import type definitions of dependent fragments when `inlineFragmentType` is `mask` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
packages/presets/near-operation-file/tests/fixtures/issue-7798-child.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export const UserNameFragment = /* GraphQL */ ` | ||
fragment UserName on User { | ||
name | ||
} | ||
`; |
8 changes: 8 additions & 0 deletions
8
packages/presets/near-operation-file/tests/fixtures/issue-7798-parent.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { UserNameFragment } from './issue-7798-child'; | ||
|
||
export const UserFragment = /* GraphQL */ ` | ||
fragment User on User { | ||
...UserName | ||
} | ||
${UserNameFragment} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9312920
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
graphql-code-generator – ./
graphql-code-generator-theguild.vercel.app
graphql-code-generator.vercel.app
www.graphql-code-generator.com
graphql-code-generator-git-master-theguild.vercel.app
www.graphql-codegen.com
graphql-codegen.com
graphql-code-generator.com