Package graphql.introspection
Class IntrospectionQueryBuilder.Options
java.lang.Object
graphql.introspection.IntrospectionQueryBuilder.Options
- Enclosing class:
IntrospectionQueryBuilder
-
Method Summary
Modifier and TypeMethodDescriptiondescriptions
(boolean flag) This will allow you to include description fields in the introspection querydirectiveIsRepeatable
(boolean flag) This will allow you to include the `isRepeatable` field for directives in the introspection query.int
inputValueDeprecation
(boolean flag) This will allow you to include deprecated input fields in the introspection query.boolean
boolean
boolean
boolean
isOneOf()
isOneOf
(boolean flag) This will allow you to include the `isOneOf` field for one of input types in the introspection query.boolean
boolean
schemaDescription
(boolean flag) This will allow you to include the `description` field for the schema type in the introspection query.specifiedByUrl
(boolean flag) This will allow you to include the `specifiedByURL` field for scalar types in the introspection query.typeRefFragmentDepth
(int typeRefFragmentDepth) This will allow you to control the depth of the `TypeRef` fragment in the introspection query.
-
Method Details
-
isDescriptions
public boolean isDescriptions() -
isSpecifiedByUrl
public boolean isSpecifiedByUrl() -
isOneOf
public boolean isOneOf() -
isDirectiveIsRepeatable
public boolean isDirectiveIsRepeatable() -
isSchemaDescription
public boolean isSchemaDescription() -
isInputValueDeprecation
public boolean isInputValueDeprecation() -
getTypeRefFragmentDepth
public int getTypeRefFragmentDepth() -
defaultOptions
-
descriptions
This will allow you to include description fields in the introspection query- Parameters:
flag
- whether to include them- Returns:
- options
-
specifiedByUrl
This will allow you to include the `specifiedByURL` field for scalar types in the introspection query.- Parameters:
flag
- whether to include them- Returns:
- options
-
isOneOf
This will allow you to include the `isOneOf` field for one of input types in the introspection query.This option is only needed while `@oneOf` input types are new and in time the reason for this option will go away.
- Parameters:
flag
- whether to include them- Returns:
- options
-
directiveIsRepeatable
This will allow you to include the `isRepeatable` field for directives in the introspection query.- Parameters:
flag
- whether to include them- Returns:
- options
-
schemaDescription
This will allow you to include the `description` field for the schema type in the introspection query.- Parameters:
flag
- whether to include them- Returns:
- options
-
inputValueDeprecation
This will allow you to include deprecated input fields in the introspection query.- Parameters:
flag
- whether to include them- Returns:
- options
-
typeRefFragmentDepth
This will allow you to control the depth of the `TypeRef` fragment in the introspection query.- Parameters:
typeRefFragmentDepth
- the depth of the `TypeRef` fragment.- Returns:
- options
-