printIntrospectionSchema function

String printIntrospectionSchema(
  1. GraphQLSchema schema, {
  2. SchemaPrinter printer = const SchemaPrinter(),
})

Returns the Schema Definition Language (SDL) string representation of the introspection types in the given schema.

Implementation

String printIntrospectionSchema(
  GraphQLSchema schema, {
  SchemaPrinter printer = const SchemaPrinter(),
}) {
  return printer.printFilteredSchema(
    schema,
    isSpecifiedDirective,
    isIntrospectionType,
  );
}