Skip to content

Commit

Permalink
chore: Turn off global fragments for react-apollo example
Browse files Browse the repository at this point in the history
  • Loading branch information
Quramy committed Mar 14, 2024
1 parent eb26ed6 commit cc282de
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions project-fixtures/react-apollo-prj/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const repositoryFragment = gql`
`;

const query = gql`
${repositoryFragment}
query GitHubQuery($first: Int!) {
viewer {
repositories(first: $first) {
Expand Down
4 changes: 2 additions & 2 deletions project-fixtures/react-apollo-prj/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
{
"name": "ts-graphql-plugin",
"schema": "schema.graphql",
"enabledGlobalFragments": true,
"tag": "gql",
"exclude": ["src/__generated__"],
"typegen": {
"addons": ["../../addons/typed-query-document"]
"addons": ["ts-graphql-plugin/addons/typed-query-document"]
}
}
]
Expand Down

0 comments on commit cc282de

Please sign in to comment.