Package graphql.introspection
Class IntrospectionResultToSchema
java.lang.Object
graphql.introspection.IntrospectionResultToSchema
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
createDeprecatedDirective
(Map<String, Object> field, NodeDirectivesBuilder nodeDirectivesBuilder) private DirectiveDefinition
createDirective
(Map<String, Object> input) private List
<DirectiveLocation> createDirectiveLocations
(List<Object> locations) (package private) EnumTypeDefinition
createEnum
(Map<String, Object> input) private List
<FieldDefinition> createFields
(List<Map<String, Object>> fields) (package private) InputObjectTypeDefinition
createInputObject
(Map<String, Object> input) private List
<InputValueDefinition> createInputValueDefinitions
(List<Map<String, Object>> args) (package private) InterfaceTypeDefinition
createInterface
(Map<String, Object> input) (package private) ObjectTypeDefinition
createObject
(Map<String, Object> input) private TypeDefinition
createScalar
(Map<String, Object> input) createSchemaDefinition
(ExecutionResult introspectionResult) Returns a IDL Document that represents the schema as defined by the introspection execution resultcreateSchemaDefinition
(Map<String, Object> introspectionResult) Returns a IDL Document that represents the schema as defined by the introspection result mapprivate TypeDefinition
createTypeDefinition
(Map<String, Object> type) private Type
createTypeIndirection
(Map<String, Object> type) (package private) UnionTypeDefinition
createUnion
(Map<String, Object> input) private Description
toDescription
(Map<String, Object> input)
-
Constructor Details
-
IntrospectionResultToSchema
public IntrospectionResultToSchema()
-
-
Method Details
-
createSchemaDefinition
Returns a IDL Document that represents the schema as defined by the introspection execution result- Parameters:
introspectionResult
- the result of an introspection query on a schema- Returns:
- a IDL Document of the schema
-
createSchemaDefinition
Returns a IDL Document that represents the schema as defined by the introspection result map- Parameters:
introspectionResult
- the result of an introspection query on a schema- Returns:
- a IDL Document of the schema
-
createDirective
-
createDirectiveLocations
-
createTypeDefinition
-
createScalar
-
createUnion
-
createEnum
-
createInterface
-
createInputObject
-
createObject
-
createFields
-
createDeprecatedDirective
private void createDeprecatedDirective(Map<String, Object> field, NodeDirectivesBuilder nodeDirectivesBuilder) -
createInputValueDefinitions
-
createTypeIndirection
-
toDescription
-