Skip to content

Conversation

@JoviDeCroock
Copy link
Member

Resolves 0no-co/gql.tada#494

Currently we see Fragments defined within one files GraphQL invocation as determining to what we'll use for all invocations within that file. This means that the fragments will leak into one another, the PR effectively adds the fragments of each node within the array so that we can use them more granularly.

In addition this contains a drive-by fix for projects in migration paths to not leverage global fragments from graphql-code-generator in gql.tada

@changeset-bot
Copy link

changeset-bot bot commented Nov 11, 2025

🦋 Changeset detected

Latest commit: fdba920

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@0no-co/graphqlsp Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

pokemon(id: $id) {
id
fleeRate
...Pok
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This now correctly shows an error

uses: pnpm/action-setup@v3
with:
version: 9
version: 8.6.1
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was not in line with the regular ci

@JoviDeCroock JoviDeCroock force-pushed the missing-fragments-in-array branch 3 times, most recently from fdc7a98 to e9b50b0 Compare November 11, 2025 14:21
@JoviDeCroock JoviDeCroock force-pushed the missing-fragments-in-array branch from 9d6e6c4 to 7e7978c Compare November 11, 2025 14:34
@JoviDeCroock JoviDeCroock merged commit 034628e into main Nov 11, 2025
1 check passed
@JoviDeCroock JoviDeCroock deleted the missing-fragments-in-array branch November 11, 2025 14:45
@github-actions github-actions bot mentioned this pull request Nov 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tada fails to warn that a fragment hasn't been passed as a dep, if it was already passed as a dep to a different query / mutation in the same file

3 participants