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

GraphQL Compiler Plugin Allows to use Record Types as Union Type Members #2746

Closed
ThisaruGuruge opened this issue Mar 1, 2022 · 0 comments · Fixed by ballerina-platform/module-ballerina-graphql#625
Assignees
Labels
Area/CompilerPlugin module/graphql Issues related to Ballerina GraphQL module Points/0.5 Team/PCM Protocol connector packages related issues Type/Bug

Comments

@ThisaruGuruge
Copy link
Member

Description:
As per the Ballerina GraphQL spec, the GraphQL compiler plugin should throw an error if a record type is used as a member of a union type.

This restriction is imposed using the compiler plugin, but when a union type has more than two members, the check failed to identify record type members.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/CompilerPlugin module/graphql Issues related to Ballerina GraphQL module Points/0.5 Team/PCM Protocol connector packages related issues Type/Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant