Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(core): switch error message for missing-operation-name #290

Merged
merged 2 commits into from
Apr 15, 2024

Conversation

JoviDeCroock
Copy link
Member

@JoviDeCroock JoviDeCroock commented Apr 15, 2024

Should we also go from Warn --> Info?

Resolves #252

Copy link

changeset-bot bot commented Apr 15, 2024

🦋 Changeset detected

Latest commit: ddca199

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

@@ -456,7 +456,7 @@ const runDiagnostics = (
) as OperationDefinitionNode;
if (!op.name) {
graphQLDiagnostics.push({
Copy link
Member

Choose a reason for hiding this comment

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

Should this be off for gql.tada?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, I honestly still think that providing no operation-name is a bad practice

@JoviDeCroock JoviDeCroock merged commit 45fe661 into main Apr 15, 2024
1 check passed
@JoviDeCroock JoviDeCroock deleted the JoviDeCroock-patch-1 branch April 15, 2024 18:29
@github-actions github-actions bot mentioned this pull request Apr 15, 2024
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.

Don't show the Operation needs a name for types to be generated. warning for gql.tada
2 participants