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