Class IntrospectionResultToSchema

java.lang.Object
graphql.introspection.IntrospectionResultToSchema

@PublicApi public class IntrospectionResultToSchema extends Object
  • Constructor Details

    • IntrospectionResultToSchema

      public IntrospectionResultToSchema()
  • Method Details

    • createSchemaDefinition

      public Document createSchemaDefinition(ExecutionResult introspectionResult)
      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

      public Document createSchemaDefinition(Map<String,Object> introspectionResult)
      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