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

Typo in error message #6310

Closed
MaryamZi opened this issue Apr 15, 2024 · 0 comments · Fixed by ballerina-platform/module-ballerina-graphql#1841
Closed

Typo in error message #6310

MaryamZi opened this issue Apr 15, 2024 · 0 comments · Fixed by ballerina-platform/module-ballerina-graphql#1841
Assignees
Labels
module/graphql Issues related to Ballerina GraphQL module Type/Improvement

Comments

@MaryamZi
Copy link
Member

Description:
$title.

import ballerina/graphql;

type Profile record {|
    int id;
    string name;
|};

type InputProfile record {|
    int id;
    string name;
|};

service on new graphql:Listener(9090) {
    resource function get profile(InputProfile ap) returns Profile {
        return ap;
    }
}

Describe your problem(s)
This results in the following error.

ERROR [sample.bal:(14:48,14:50)] the GraphQL field 'Query.profile' use output type 'InputProfile' as an input type. A GraphQL field cannot use an output type as an input type

Describe your solution(s)
"use" in "use output type" should be "uses"

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 Type/Improvement
Projects
Archived in project
2 participants