ballerina-library icon indicating copy to clipboard operation
ballerina-library copied to clipboard

Improve the Schema Generation with Ordering the Types

Open ThisaruGuruge opened this issue 1 year ago • 2 comments

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 #...

ThisaruGuruge avatar Apr 25 '23 05:04 ThisaruGuruge

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

swetha3456 avatar Oct 26 '23 21:10 swetha3456

@swetha3456 Any update on this?

keizer619 avatar Oct 31 '23 09:10 keizer619