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

Input Types of NON_NULL Shown as Nullable Types when Input has a Default Value #1818

Closed
DimuthuMadushan opened this issue Aug 26, 2021 · 0 comments · Fixed by ballerina-platform/module-ballerina-graphql#389
Assignees
Labels
module/graphql Issues related to Ballerina GraphQL module Points/2 Priority/High Team/PCM Protocol connector packages related issues Type/Bug

Comments

@DimuthuMadushan
Copy link

Description:
Consider following service:

service /graphql on new graphql:Listener(9000) {
  resource function get greeting(string name = "Walter") returns string {
      return "Hello, " + name;
  }
}

In the schema, argument name is shown as nullable type argument. But it should be a NON_NULL type.

@DimuthuMadushan DimuthuMadushan added Type/Bug module/graphql Issues related to Ballerina GraphQL module labels Aug 26, 2021
@ThisaruGuruge ThisaruGuruge added the Team/PCM Protocol connector packages related issues label Aug 26, 2021
@ThisaruGuruge ThisaruGuruge self-assigned this Aug 26, 2021
@ThisaruGuruge ThisaruGuruge added this to the Swan Lake Beta3 milestone Aug 30, 2021
@ThisaruGuruge ThisaruGuruge changed the title Return invalid type name for NON_NULL type arguments with default value Input Types of NON_NULL Shown as Nullable Types when Input has a Default Value Aug 30, 2021
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 Points/2 Priority/High Team/PCM Protocol connector packages related issues Type/Bug
Projects
None yet
2 participants