Skip to content

Conversation

@foenye
Copy link

@foenye foenye commented Nov 24, 2025

Allow users to override the default SchemaPrinter.Options in ServiceSDLPrinter by exposing a static variable:

public static SchemaPrinter.Options OPTIONS = Options.defaultOptions();

This enables customizing type comparator behavior (e.g., using DefaultGraphqlTypeComparatorRegistry.AS_IS_REGISTRY) to preserve schema field order in the generated SDL.

Closes #444

Allow users to override the default SchemaPrinter.Options in ServiceSDLPrinter by
exposing a static variable:

    public static SchemaPrinter.Options OPTIONS = Options.defaultOptions();

This enables customizing type comparator behavior (e.g., using
DefaultGraphqlTypeComparatorRegistry.AS_IS_REGISTRY) to preserve schema field
order in the generated SDL.

Signed-off-by: fong <[email protected]>
@foenye foenye requested a review from a team as a code owner November 24, 2025 13:46
@apollo-cla
Copy link

@foenye: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support custom ServiceSDLPrinter's SchemaPrinter.Options

2 participants