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

Incorrectly Generate the GraphQL Schema when an Annotation Present in a Record Field #4650

Closed
DimuthuMadushan opened this issue Jul 10, 2023 · 0 comments · Fixed by ballerina-platform/module-ballerina-graphql#1518
Assignees
Labels
module/graphql Issues related to Ballerina GraphQL module Team/PCM Protocol connector packages related issues Type/Improvement

Comments

@DimuthuMadushan
Copy link

Description:

$subject

Consider the following GraphQL service:

import ballerina/graphql;

public type Profile record {|
    string name;
    int age;
    @deprecated
    Address address;
|};

public type Address record {|
    string street;
    string number;
|};

service /graphql on new graphql:Listener(9090) {
    resource function get person() returns Profile {
        return {name: "Jessie", age: 20, address: {street: "Main Street", number: "123"}};
    }
}

This returns following error in the GraphiQL client. Also it cannot be queried fields on type Address.
Screenshot from 2023-07-10 14-53-45

Affected version: 1.9.0

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 Team/PCM Protocol connector packages related issues Type/Improvement
Projects
Archived in project
1 participant