Class IntrospectionQueryBuilder.Options
java.lang.Object
graphql.introspection.IntrospectionQueryBuilder.Options
- Enclosing class:
IntrospectionQueryBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final booleanprivate final booleanprivate final booleanprivate final booleanprivate final booleanprivate final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateOptions(boolean descriptions, boolean specifiedByUrl, boolean isOneOf, boolean directiveIsRepeatable, boolean schemaDescription, boolean inputValueDeprecation, int typeRefFragmentDepth) -
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.intinputValueDeprecation(boolean flag) This will allow you to include deprecated input fields in the introspection query.booleanbooleanbooleanbooleanisOneOf()isOneOf(boolean flag) This will allow you to include the `isOneOf` field for one of input types in the introspection query.booleanbooleanschemaDescription(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.
-
Field Details
-
descriptions
private final boolean descriptions -
specifiedByUrl
private final boolean specifiedByUrl -
isOneOf
private final boolean isOneOf -
directiveIsRepeatable
private final boolean directiveIsRepeatable -
schemaDescription
private final boolean schemaDescription -
inputValueDeprecation
private final boolean inputValueDeprecation -
typeRefFragmentDepth
private final int typeRefFragmentDepth
-
-
Constructor Details
-
Options
private Options(boolean descriptions, boolean specifiedByUrl, boolean isOneOf, boolean directiveIsRepeatable, boolean schemaDescription, boolean inputValueDeprecation, int typeRefFragmentDepth)
-
-
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
-