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

Inline Fragment Support for Ballerina GraphQL #1244

Closed
ThisaruGuruge opened this issue Apr 15, 2021 · 0 comments · Fixed by ballerina-platform/module-ballerina-graphql#194
Closed
Assignees
Labels
module/graphql Issues related to Ballerina GraphQL module Team/PCM Protocol connector packages related issues Type/Improvement

Comments

@ThisaruGuruge
Copy link
Member

ThisaruGuruge commented Apr 15, 2021

Description:
Currently, the Ballerina GraphQL package only supports named fragmeents. It should support inline fragments.

For an example, the following query should be valid:

query {
    ... on Query {
        profile {
            name
        }
    }
}

on the following service:

import ballerina/graphql;

service graphql:Service on new graphql:Listener(9090) {
    resource function get profile returns Person {
        return { name: "John Doe", age: 20 };
    }
}

type Person record {
    string name;
    int age;
};

Part of #1224

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
None yet
Development

Successfully merging a pull request may close this issue.

1 participant