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

Allow directives without a Go visitor counterpart #591

Merged
merged 1 commit into from
Feb 22, 2023

Conversation

pavelnikolov
Copy link
Member

fixes: #588

return nil, fmt.Errorf("no visitors have been registered for directive %q", name)
}
}

Copy link
Member Author

Choose a reason for hiding this comment

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

We might add some schema option which adds an exception list from the above rule, however, until then I'm removing this restriction.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm still considering if we need to restrict directive locations or not 🤔

@pavelnikolov pavelnikolov merged commit 801181b into master Feb 22, 2023
@pavelnikolov pavelnikolov deleted the allow-directives-without-visitors branch February 22, 2023 21:46
@pavelnikolov pavelnikolov added this to the v1.6.0 milestone Feb 22, 2023
KNiepok pushed a commit to spacelift-io/graphql-go that referenced this pull request Feb 28, 2023
KNiepok pushed a commit to spacelift-io/graphql-go that referenced this pull request Feb 28, 2023
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.

Allow directives without a Go visitor counterpart
1 participant