@PublicApi public class SchemaPrinter extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SchemaPrinter.Options
Options to use when printing a schema
|
Constructor and Description |
---|
SchemaPrinter() |
SchemaPrinter(SchemaPrinter.Options options) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
print(Document schemaIDL)
This can print an in memory GraphQL IDL document back to a logical schema definition.
|
java.lang.String |
print(GraphQLSchema schema)
This can print an in memory GraphQL schema back to a logical schema definition
|
java.lang.String |
print(GraphQLType type) |
public SchemaPrinter()
public SchemaPrinter(SchemaPrinter.Options options)
public java.lang.String print(Document schemaIDL)
IntrospectionResultToSchema.createSchemaDefinition(java.util.Map)
first to get the Document
and then print that.schemaIDL
- the parsed schema IDLpublic java.lang.String print(GraphQLSchema schema)
schema
- the schema in playpublic java.lang.String print(GraphQLType type)