Package graphql.introspection
Class IntrospectionResultToSchema
java.lang.Object
graphql.introspection.IntrospectionResultToSchema
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcreateDeprecatedDirective(Map<String, Object> field, NodeDirectivesBuilder nodeDirectivesBuilder) private DirectiveDefinitioncreateDirective(Map<String, Object> input) private List<DirectiveLocation> createDirectiveLocations(List<Object> locations) (package private) EnumTypeDefinitioncreateEnum(Map<String, Object> input) private List<FieldDefinition> createFields(List<Map<String, Object>> fields) (package private) InputObjectTypeDefinitioncreateInputObject(Map<String, Object> input) private List<InputValueDefinition> createInputValueDefinitions(List<Map<String, Object>> args) (package private) InterfaceTypeDefinitioncreateInterface(Map<String, Object> input) (package private) ObjectTypeDefinitioncreateObject(Map<String, Object> input) private TypeDefinitioncreateScalar(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 TypeDefinitioncreateTypeDefinition(Map<String, Object> type) private TypecreateTypeIndirection(Map<String, Object> type) (package private) UnionTypeDefinitioncreateUnion(Map<String, Object> input) private DescriptiontoDescription(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
-