ballerina-platform / ballerina-library

The Ballerina Library
https://ballerina.io/learn/api-docs/ballerina/
Apache License 2.0
137 stars 65 forks source link

Improve the Schema Generation with Ordering the Types #6441

Open ThisaruGuruge opened 1 year ago

ThisaruGuruge commented 1 year ago

Description:

The Ballerina GraphQL tool generates the schema from the Ballerina service. This generated schema file is not ordered properly. Ideally, we should order the types so the schema looks nice.

It should be something like this:

type Query {
    # ...
}

type Mutation {
    # ...
}

type Subscription {
    # ...
}

interface I {
    # ...
}

type Foo {
    # ...
}

input Bar {
    # ...
}

enum E {
    # ...
}

union #...
swetha3456 commented 11 months ago

I'd like to work on this. Please assign me.

keizer619 commented 11 months ago

@swetha3456 Any update on this?