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 Fails when Self Referencing Record Types Exist #2656

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

Comments

@ThisaruGuruge
Copy link
Member

ThisaruGuruge commented Feb 7, 2022

Description:

The following is a minimal reproducible code for the issue:

import ballerina/graphql;

type Person record {
    string name;
    Person[] friends;
};

service on new graphql:Listener(4000) {
    resource function get profile() returns Person {
        return { name: "Walter White", friends: []};
    }
}

Following is the error message:

error: compilation failed: The compiler extension in package 'ballerina:graphql:1.2.0' failed to complete. null
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/1 Priority/High Team/PCM Protocol connector packages related issues Type/Bug
Projects
None yet
1 participant