public static class SchemaPrinter.Options
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static SchemaPrinter.Options |
defaultOptions() |
SchemaPrinterComparatorRegistry |
getComparatorRegistry() |
SchemaPrinter.Options |
includeDirectives(boolean flag)
Allow to print directives.
|
SchemaPrinter.Options |
includeExtendedScalarTypes(boolean flag)
This will allow you to include the graphql 'extended' scalar types that come with graphql-java such as
GraphQLBigDecimal or GraphQLBigInteger
|
SchemaPrinter.Options |
includeIntrospectionTypes(boolean flag)
This will allow you to include introspection types that are contained in a schema
|
SchemaPrinter.Options |
includeScalarTypes(boolean flag)
This will allow you to include scalar types that are contained in a schema
|
SchemaPrinter.Options |
includeSchemaDefintion(boolean flag)
This will force the printing of the graphql schema definition even if the query, mutation, and/or subscription
types use the default names.
|
boolean |
isIncludeDirectives() |
boolean |
isIncludeExtendedScalars() |
boolean |
isIncludeIntrospectionTypes() |
boolean |
isIncludeScalars() |
boolean |
isIncludeSchemaDefinition() |
SchemaPrinter.Options |
setComparators(SchemaPrinterComparatorRegistry comparatorRegistry)
The comparator registry controls the printing order for registered
GraphQLType s. |
public boolean isIncludeIntrospectionTypes()
public boolean isIncludeScalars()
public boolean isIncludeExtendedScalars()
public boolean isIncludeSchemaDefinition()
public boolean isIncludeDirectives()
public static SchemaPrinter.Options defaultOptions()
public SchemaPrinter.Options includeIntrospectionTypes(boolean flag)
flag
- whether to include thempublic SchemaPrinter.Options includeScalarTypes(boolean flag)
flag
- whether to include thempublic SchemaPrinter.Options includeExtendedScalarTypes(boolean flag)
flag
- whether to include thempublic SchemaPrinter.Options includeSchemaDefintion(boolean flag)
flag
- whether to force include the schema definitionpublic SchemaPrinter.Options includeDirectives(boolean flag)
flag
- whether to print directivespublic SchemaPrinter.Options setComparators(SchemaPrinterComparatorRegistry comparatorRegistry)
GraphQLType
s.comparatorRegistry
- The registry containing the Comparator
and environment scoping rules.public SchemaPrinterComparatorRegistry getComparatorRegistry()