printSchema function
Returns the Schema Definition Language (SDL) string representation of the
given schema
.
Implementation
String printSchema(
GraphQLSchema schema, {
SchemaPrinter printer = const SchemaPrinter(),
}) {
return printer.printFilteredSchema(
schema,
(n) => !isSpecifiedDirective(n),
isDefinedType,
);
}