Class GraphQLGenerator

java.lang.Object
org.brapi.schematools.core.graphql.GraphQLGenerator

public class GraphQLGenerator extends Object
Generates a GraphQL schema from a BrAPI Json Schema.
  • Constructor Details

  • Method Details

    • generate

      public Response<graphql.schema.GraphQLSchema> generate(Path schemaDirectory)
      Generates the GraphQLSchema from the complete BrAPI Specification in a directory contains a subdirectories for each module that contain the BrAPI Json schema and the additional subdirectories called 'Requests' that contains the request schemas and BrAPI-Common that contains common schemas for use across modules.
      Parameters:
      schemaDirectory - the path to the complete BrAPI Specification
      Returns:
      the GraphQLSchema from the complete BrAPI Specification
    • generate

      public Response<graphql.schema.GraphQLSchema> generate(Path schemaDirectory, GraphQLGeneratorMetadata metadata)
      Generates the GraphQLSchema from the complete BrAPI Specification in a directory contains a subdirectories for each module that contain the BrAPI Json schema and the additional subdirectories called 'Requests' that contains the request schemas and BrAPI-Common that contains common schemas for use across modules.
      Parameters:
      schemaDirectory - the path to the complete BrAPI Specification
      metadata - additional metadata that is used in the generation
      Returns:
      the GraphQLSchema from the complete BrAPI Specification