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 Passing an HTTP Listener with Configs to Listener Init #2733

Closed
ThisaruGuruge opened this issue Feb 24, 2022 · 0 comments · Fixed by ballerina-platform/module-ballerina-graphql#625
Assignees
Labels
module/graphql Issues related to Ballerina GraphQL module Priority/High Team/PCM Protocol connector packages related issues Type/Bug

Comments

@ThisaruGuruge
Copy link
Member

Description:

When used with the check expression, a GraphQL listener init function will allow passing additional configs with an HTTP listener variable.

The following should throw a compilation error, but it does not.

import ballerina/graphql;
import ballerina/http;

listener http:Listener httpListener = new(9090);
listener graphql:Listener graphqlListener = check new(httpListener, timeout = 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module/graphql Issues related to Ballerina GraphQL module Priority/High Team/PCM Protocol connector packages related issues Type/Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant