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 Services Allow the Use of Empty Record Types as GraphQL Object Types #4724

Closed
DimuthuMadushan opened this issue Aug 16, 2023 · 0 comments · Fixed by ballerina-platform/module-ballerina-graphql#1580
Assignees
Labels
module/graphql Issues related to Ballerina GraphQL module Reason/EngineeringMistake The issue occurred due to a mistake made in the past. Team/PCM Protocol connector packages related issues Type/Bug
Milestone

Comments

@DimuthuMadushan
Copy link

Description:
The following GraphQL service should return a compilation error. Currently it's compiling successfully.

import ballerina/graphql;

type Project record {
};

service /projects on new graphql:Listener(8080) {
    resource function get project() returns Project {
        return {};
    }
}
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 Reason/EngineeringMistake The issue occurred due to a mistake made in the past. Team/PCM Protocol connector packages related issues Type/Bug
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants