Class GraphQLDocumentParser

java.lang.Object
io.github.besi97.graphql.codegen.parser.GraphQLDocumentParser

public class GraphQLDocumentParser extends Object
Provides methods for extended document generation
  • Method Details

    • getDocumentFromSchemas

      public static ExtendedDocument getDocumentFromSchemas(MappingConfig mappingConfig, List<String> schemaPaths) throws IOException
      Generate an extended document from schema files
      Parameters:
      mappingConfig - Global mapping config
      schemaPaths - Paths to GraphQL schema files
      Returns:
      extended document definition
      Throws:
      IOException - in case unable to read the file content
    • getDocumentFromIntrospectionResult

      public static ExtendedDocument getDocumentFromIntrospectionResult(MappingConfig mappingConfig, String introspectionResult) throws IOException
      Generate an extended document from introspection result file
      Parameters:
      mappingConfig - Global mapping config
      introspectionResult - Path to introspection result file
      Returns:
      extended document definition
      Throws:
      IOException - in case unable to read the file content
    • createMultiSourceReader

      public static graphql.parser.MultiSourceReader createMultiSourceReader(List<String> schemaPaths) throws IOException
      Throws:
      IOException