@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
|
Modifier and Type | Field and Description |
---|---|
static java.util.function.Predicate<GraphQLDirective> |
ExcludeGraphQLSpecifiedDirectivesPredicate
This predicate excludes all directives which are specified bt the GraphQL Specification.
|
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(GraphQLDirective graphQLDirective) |
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 static final java.util.function.Predicate<GraphQLDirective> ExcludeGraphQLSpecifiedDirectivesPredicate
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)
public java.lang.String print(GraphQLDirective graphQLDirective)