Skip to content

Feature request: lexicographic schema sort #865

@mrtnzlml

Description

@mrtnzlml

Is your feature request related to a problem? Please describe.

GraphQL reference implementation has support for lexicographicSortSchema: https://github.com/graphql/graphql-js/search?q=lexicographicSortSchema. This is useful when printing the schema. Unfortunately, Juniper doesn't seem to support this feature when using as_schema_language() (correct me if I am wrong) which sometimes results in a complicated diff when doing some changes in the schema - the elements seems to be in a random order (?). It would be nice, if Juniper could sort the schema as well.

Describe the solution you'd like
none

Describe alternatives you've considered

I am not aware of any alternative (apart from not sorting the schema at all).

Additional context
none

Metadata

Metadata

Assignees

No one assigned

    Labels

    area::introspectionRelated to GraphQL introspectionenhancementImprovement of existing features or bugfixk::apiRelated to API (application interface)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions