Skip to content

SchemaPrinter not outputting "extend schema" for extensionDefinitions #3428

@RoKKim

Description

@RoKKim

Describe the bug
When calling graphql.schema.idl.SchemaPrinter#schemaPrinter with a schema that has graphql.schema.GraphQLSchema#extensionDefinitions defined, I would expect it to print out the "extend schema" string. I would expect the graphql.schema.idl.SchemaPrinter#schemaPrinter to:

  1. Check if options.isUseAstDefinitions() returns true.
  2. Print "extend schema" for each out.print(AstPrinter.printAst(extension));.

Alternatively, is there another method to enable printing of the extensions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions